Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

False positive reported on SnakeYAML CVE-2022-1471

未关闭
#444 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
java
领域
security

调研方向

该 payload 没有指出任何仓库文件或测试。首先定位此仓库中表示依赖 org.yaml:snakeyaml 或漏洞数据的位置,然后重现针对版本 2.6 的 Xray 扫描。当 SnakeYAML 2.0 及更高版本不再报告 CVE-2022-1471 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Java
星标
331
派生
164
平均合并
20 小时 9 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jfrog/artifactory-client-java 的其他 Issue

查看 jfrog/artifactory-client-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。