jfrog / jfrog/artifactory-client-java
False positive reported on SnakeYAML CVE-2022-1471
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 331
- Forks
- 163
- Avg merge
- 20h 9m
- Merged PRs (30d)
- 1
Description
Describe the bug
Xray reports CVE-2022-1471 against org.yaml:snakeyaml 2.6. This CVE only affects SnakeYAML versions < 2.0 where the unsafe Constructor() class was the default. In 2.0+, SafeConstructor is the default and the vulnerability does not apply.
To Reproduce
Xray scan a software containing org.yaml:snakeyaml 2.6 and see CVE-2022-1471 reported. This CVE impacts SnakeYAML < 2.0 only. Version 2.6 is well above the fix threshold.
Expected behavior
CVE-2022-1471 should not be reported for SnakeYAML >= 2.0, as the vulnerability was resolved by making SafeConstructor the default in that version.
Versions
- Package: org.yaml:snakeyaml:2.6
- Vulnerable range per NVD: < 2.0
- Fix version: 2.0
Additional context
NVD advisory: https://github.com/advisories/GHSA-mjmj-j48q-9wg2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The payload names no repository file or test. Start by locating where the org.yaml:snakeyaml dependency or vulnerability data is represented in this repository, then reproduce the Xray scan for version 2.6. Done means CVE-2022-1471 is no longer reported for SnakeYAML versions 2.0 and newer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100