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

CVE-2026-54696 (Low) detected in json-2.12.2.gem

未关闭 适合新手
#291 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
ruby
领域
security

调研方向

先从 Gemfile.lock 和 vendor/cache/json-2.12.2.gem 中的 vendored dependency 入手,然后检查此 repository 如何管理 Ruby gem 升级。将 json 更新到指定的固定版本 2.19.9,按需刷新 lockfile 和 vendored package,并运行 repository 的测试套件,以确认依赖项变更没有问题。

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

描述

Mend: dependency security vulnerability

CVE-2026-54696 - Low Severity Vulnerability

Vulnerable Library - json-2.12.2.gem

This is a JSON implementation as a Ruby extension in C.

Library home page: https://rubygems.org/gems/json-2.12.2.gem

Path to dependency file: /Gemfile.lock

Path to vulnerable library: /vendor/cache/json-2.12.2.gem

Dependency Hierarchy:

  • rubocop-1.76.1.gem (Root Library)
    • ❌ json-2.12.2.gem (Vulnerable Library)

Found in base branch: master

Vulnerability Details

Ruby JSON is a JSON implementation for Ruby. Versions 2.9.0 through 2.19.8 are vulnerable to heap buffer overflow when the JSON generator is provided with an oversized streamed object. When streaming to an IO JSON.dump(obj, io) and JSON::State#generate(obj, io) can write past the internal JSON generator buffer when a streamed object contains an
attacker-controlled string near 16 KB. Exploitation would result in a reliable process crash/denial of service. This issue has been fixed in version 2.19.9.

Publish Date: 2026-06-30

URL: CVE-2026-54696

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/ruby/json/security/advisories/GHSA-x2f5-4prf-w687

Release Date: 2026-06-30

Fix Resolution: json - 2.19.9


Step up your Open Source Security Game with Mend here

主要语言
Ruby
星标
30
派生
27
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

ManageIQ/linux_admin 的其他 Issue

查看 ManageIQ/linux_admin 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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