Skip to content

Commit d4d45c3

Browse files
committed
Forsøk på å løse json-smart 4: update to newest nimbus-jose-jwt since the old one has shaded json-smart of vulnerable version
1 parent 03d9bf8 commit d4d45c3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ fun graphqlKotlin(name: String) = "com.expediagroup:graphql-kotlin-$name:6.4.0"
3232
dependencies {
3333
implementation(kotlin("stdlib-jdk8"))
3434

35-
// implementation("net.minidev:json-smart:2.4.9")
36-
3735
// Http
3836
implementation("no.nav.hjelpemidler.http:hm-http:v0.0.4")
3937

@@ -79,6 +77,12 @@ dependencies {
7977
val tokenSupportVersion = "3.0.0"
8078
// implementation("com.github.navikt.tms-ktor-token-support:token-support-authentication-installer:$tokenSupportVersion")
8179
implementation("com.github.navikt.tms-ktor-token-support:token-support-azure-validation:$tokenSupportVersion")
80+
constraints {
81+
implementation("com.nimbusds:nimbus-jose-jwt:9.37.1") {
82+
because("json-smart: Uncontrolled Resource Consumption vulnerability in json-smart (Resource Exhaustion), since 9.19 has a shaded json-smart")
83+
}
84+
}
85+
8286
implementation("com.github.navikt.tms-ktor-token-support:token-support-tokendings-exchange:$tokenSupportVersion")
8387
implementation("com.github.navikt.tms-ktor-token-support:token-support-tokenx-validation:$tokenSupportVersion")
8488

0 commit comments

Comments
 (0)