Skip to content

Commit

Permalink
Exclude (unused) snakeyaml dependency (#120553)
Browse files Browse the repository at this point in the history
* Exclude (unused) snakeyaml dependency

* Explanatory comment and CVE link
  • Loading branch information
prdoyle authored Jan 22, 2025
1 parent 393e998 commit ff9a1eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/snapshot-tool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ dependencies {
api 'javax.xml.bind:jaxb-api:2.2.2'
}

configurations.configureEach {
exclude group: 'org.yaml', module: 'snakeyaml' // Avoid CVE: https://nvd.nist.gov/vuln/detail/cve-2022-1471
}

tasks.named("dependencyLicenses").configure {
mapping from: /aws-java-sdk-.*/, to: 'aws-java-sdk'
mapping from: /jmespath-java.*/, to: 'aws-java-sdk'
Expand Down

0 comments on commit ff9a1eb

Please sign in to comment.