cve.bz

CVE-2022-46175 Prototype Pollution

8.8 highExploit referenceEPSS 4.4%Fix available

High (8.8). EPSS 4.4% estimated probability of exploitation activity in the next 30 days. Fixed in json5 1.0.2, 2.2.2.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.4% (down from 9.7% a week ago; 9.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1321 Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-46175 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-46175?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-46175?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-46175 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
json5:json5before 1.0.2
json5:json5from 2.0.0 before 2.2.2
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9c47-m6qq-7p4hnpmjson5>=2.0.0 <2.2.22.2.2
GHSA-9c47-m6qq-7p4hnpmjson5<1.0.21.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-json50.5.1-1+deb10u1DLA-3665-1
Debian12, 13, 14node-json52.2.3+dfsg-1DEBIAN-CVE-2022-46175
Ubuntu20.04:LTSnode-json50.5.1-3ubuntu0.1UBUNTU-CVE-2022-46175 USN-6758-1
UbuntuPro:18.04:LTSnode-json50.5.1-1ubuntu0.1~esm1UBUNTU-CVE-2022-46175 USN-6758-1
UbuntuPro:22.04:LTSnode-json52.2.0+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2022-46175 USN-6758-1
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el7ssoRHSA-2023:1043
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el8ssoRHSA-2023:1044
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el9ssoRHSA-2023:1045
Azure Linux3js-jqueryno fix listedAZL-44886

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The json5 package is a build-time dependency in Red Hat products and is not used in production runtime. Hence, the impact is set to Moderate.

ProductPackageStateAdvisory
MTA-6.0-RHEL-8mta/mta-ui-rhel8:6.0.1-10Fixed 2023-02-28RHSA-2023:0934
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-ui-rhel8:v1.7.8-5Fixed 2023-03-23RHSA-2023:1428
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/dashboard-rhel8:3.15-6Fixed 2024-07-18RHSA-2024:4631
Red Hat Single Sign-On 7json5Fixed 2023-03-01RHSA-2023:1049
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el7ssoFixed 2023-03-01RHSA-2023:1043
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el8ssoFixed 2023-03-01RHSA-2023:1044
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el9ssoFixed 2023-03-01RHSA-2023:1045
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-20Fixed 2023-03-01RHSA-2023:1047
RHODF-4.13-RHEL-9odf4/mcg-core-rhel9:v4.13.0-41Fixed 2023-06-21RHSA-2023:3742
RHOL-5.6-RHEL-8openshift-logging/logging-view-plugin-rhel8:v5.6.1-8Fixed 2023-02-09RHSA-2023:0634
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Fix deferred
OpenShift Developer Tools and ServicesodoNot affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Affected
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
OpenShift Service Mesh 2.1servicemesh-prometheusWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-api-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Affected
41 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-46175.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON