Skip to content
This page tracks the Debian fix status. The vulnerability itself is described on the main CVE page. View CVE-2022-46175 →
Unrated

Vulnerability in node-json5

DEBIAN-CVE-2022-46175 First seen on SecPulse

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as DEBIAN-CVE-2022-46175 has been found in node-json5.
Attackers can target a specific entry point like parse over the network to misuse the product.
Successful exploitation can lead to full system takeover.
What to do: upgrade node-json5 to 2.1.3-2+deb11u1 or later.
If unsure, ask your IT team or search "node-json5 DEBIAN-CVE-2022-46175" on the vendor's site.

DEBIAN-CVE-2022-46175 (node-json5)
Attack vector: remote (network-reachable) / no user interaction
Attack surface: parse / __proto__ / JSON5.parse / JSON.parse
Patched: 2.1.3-2+deb11u1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (unclassified) exists in node-json5. Attackers reach the vulnerable code path via parse.

Affected scope

Check the vendor advisory for the affected versions of node-json5. Attack surface: parse / __proto__ / JSON5.parse / JSON.parse.

Severity

Severity: ?. Successful exploitation can lead to full system takeover.

How to fix

Update to 2.1.3-2+deb11u1.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'node-json5' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'node-json5' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で node-json5 を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade node-json5 to 2.1.3-2+deb11u1

    ステージング環境で 2.1.3-2+deb11u1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
Debian:11node-json5
< 2.1.3-2+deb11u1→ 2.1.3-2+deb11u1
Debian:12node-json5
< 2.2.3+dfsg-1→ 2.2.3+dfsg-1
Debian:13node-json5
< 2.2.3+dfsg-1→ 2.2.3+dfsg-1
Debian:14node-json5
< 2.2.3+dfsg-1→ 2.2.3+dfsg-1
Original description The description as published by the source.

JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for config files). The parse method of the JSON5 library before and including versions 1.0.1 and 2.2.1 does not restrict parsing of keys named __proto__, allowing specially crafted strings to pollute the prototype of the resulting object. This vulnerability pollutes the prototype of the object returned by JSON5.parse and not the global Object prototype, which is the commonly understood definition of Prototype Pollution. However, polluting the prototype of a single object can have significant security impact for an application if the object is later used in trusted operations. This vulnerability could allow an attacker to set arbitrary and unexpected keys on the object returned from JSON5.parse. The actual impact will depend on how applications utilize the returned object and how they filter unwanted keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme cases, remote code execution. JSON5.parse should restrict parsing of __proto__ keys when parsing JSON strings to objects. As a point of reference, the JSON.parse method included in JavaScript ignores __proto__ keys. Simply changing JSON5.parse to JSON.parse in the examples above mitigates this vulnerability. This vulnerability is patched in json5 versions 1.0.2, 2.2.2, and later.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details