ADVISORIES

Vulnerability

CVE-2022-46175

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.

22 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • AZL-44886

    CVE-2022-46175 affecting package js-jquery 3.5.0-4

    CVE-2022-46175 Azure Linux Updated 23 November 2026
  • CGA-5fr9-59c2-6pvq
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-6h7m-cq92-369g
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-6r2c-25mw-q244
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-7frh-8rm2-5c99
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-92xj-3gch-fv3m
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-9qh8-fjrp-3vj6
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-g2pj-2v34-x4j5
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-hmfx-jhmh-qmxc
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-j9wf-8f29-pc58
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-qvgm-w2w5-7v47
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-rvqm-xj72-fhq3
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • CGA-w5fp-8fpx-w223
    CVE-2022-46175 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2022-46175

    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…

    CVE-2022-46175 Debian Updated 20 November 2026
  • DLA-3665-1

    node-json5 - security update

    CVE-2022-46175 Debian Updated 20 November 2026
  • GHSA-9c47-m6qq-7p4h

    Prototype Pollution in JSON5 via Parse Method

    High CVE-2022-46175 npm Updated 10 September 2026
  • RHSA-2023:1043

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHSA-2023:1044

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 8

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHSA-2023:1045

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 9

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2022-46175

    json5: Prototype Pollution in JSON5 via Parse Method

    Moderate CVE-2022-46175 Red Hat Updated 5 November 2026
  • UBUNTU-CVE-2022-46175

    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…

    CVE-2022-46175 Ubuntu Updated 4 February 2026
  • USN-6758-1

    node-json5 vulnerability

    CVE-2022-46175 Ubuntu Updated 27 April 2026

References