cve.bz

CVE-2021-3918 Prototype Pollution

9.8 criticalExploit referenceEPSS 3.8%Fix available

Critical (9.8). EPSS 3.8% estimated probability of exploitation activity in the next 30 days. Fixed in json-schema 0.4.0.

On this page
json-schema is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.8% (unchanged from 3.8% a week ago; 3.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. 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-2021-3918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3918?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3918?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-2021-3918 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 CNA's record in the CVE List.

ProductAffected
kriszyp/json-schemathrough 0.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-896r-f27r-55mwnpmjson-schema<0.4.00.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-json-schema0.2.3-1+deb10u1DLA-3228-1
Debian12, 13, 14node-json-schema0.4.0+~7.0.9-1DEBIAN-CVE-2021-3918
Ubuntu18.04:LTSnode-json-schema0.2.3-1+deb10u1build0.18.04.1UBUNTU-CVE-2021-3918 USN-6103-1
Ubuntu20.04:LTSnode-json-schema0.2.3-1+deb10u1build0.20.04.1UBUNTU-CVE-2021-3918 USN-6103-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.22.12-1.module+el8.6.0+15324+1f2c5d8dRHEA-2022:5139
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.18.2-2.module+el8.5.0+13644+8d46dafdRHSA-2022:0350
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.13.1-3.module+el8.5.0+13548+45d748afRHSA-2021:5171
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.15-1.module+el8.5.0+13504+a2e74d91RHSA-2022:0350
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.15-1.module+el8.5.0+13548+45d748afRHSA-2021:5171
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.4.0+11732+c668cc9fRHEA-2022:5139
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHEA-2022:5139
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2022:0350
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2021:5171
Red Hatenterprise_linux:8::appstreamnpm1:6.14.15-1.14.18.2.2.module+el8.5.0+13644+8d46dafdRHSA-2022:0350
Red Hatenterprise_linux:8::appstreamnpm1:6.14.16-1.12.22.12.1.module+el8.6.0+15324+1f2c5d8dRHEA-2022:5139
Red Hatenterprise_linux:8::appstreamnpm1:8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748afRHSA-2021:5171
21 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 morenodejs-common2.0-3.4.1SUSE-SU-2022:0704-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 morenodejs1010.24.1-150000.1.44.1SUSE-SU-2022:1717-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morenodejs88.17.0-3.54.2SUSE-SU-2022:0563-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morebind9.16.6-150000.12.65.1SUSE-SU-2023:2578-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1212.22.10-4.29.3SUSE-SU-2022:0657-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1414.19.0-15.27.1SUSE-SU-2022:0715-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 morenodejs88.17.0-10.19.2SUSE-SU-2022:0704-1
SUSELinux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Module for Package Hub 15 SP5grafana9.5.1-150200.3.41.3SUSE-SU-2023:2575-1
SUSELinux Enterprise Module for Package Hub 15 SP5grafana9.5.8-150200.3.53.2SUSE-RU-2024:0511-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.24.1-1.46.1SUSE-SU-2022:0570-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.22.10-1.42.2SUSE-SU-2022:0531-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.19.0-6.24.1SUSE-SU-2022:0569-1
65 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3nodejs1212.22.10-4.29.3openSUSE-SU-2022:0657-1
openSUSELeap 15.3nodejs1414.19.0-15.27.1openSUSE-SU-2022:0715-1
openSUSELeap 15.3nodejs88.17.0-10.19.2openSUSE-SU-2022:0704-1
openSUSELeap 15.3, Leap 15.4nodejs1010.24.1-150000.1.44.1SUSE-SU-2022:1717-1
openSUSELeap 15.4bind9.16.6-150000.12.65.1SUSE-SU-2023:2578-1
openSUSELeap 15.4, Leap 15.5dracut-saltboot0.1.1681904360.84ef141-150000.1.50.1SUSE-SU-2023:2578-1
openSUSELeap 15.4, Leap 15.5grafana9.5.1-150200.3.41.3SUSE-SU-2023:2575-1
openSUSELeap 15.4, Leap 15.5spacecmd4.3.21-150000.3.98.1SUSE-SU-2023:2578-1
openSUSELeap 15.4, Leap 15.5wire0.5.0-150000.1.12.3SUSE-SU-2023:2578-1
openSUSELeap 15.5golang-github-lusitaniae-apache_exporter1.0.0-150000.1.20.1SUSE-SU-2024:0487-1
openSUSELeap 15.5grafana9.5.8-150200.3.53.2SUSE-RU-2024:0511-1
openSUSELeap 15.5prometheus-postgres_exporter0.10.1-150000.1.17.1SUSE-SU-2024:0487-1
2 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux8nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748afALSA-2021:5171 ALSA-2022:0350
AlmaLinux8nodejs-nodemon2.0.15-1.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux8nodejs-nodemon2.0.15-1.module_el8.6.0+2904+f21ad6f4ALSA-2021:5171 ALSA-2022:0350
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2022:0350
AlmaLinux8nodejs-packaging23-3.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux8npm1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16ALSA-2022:0350
3 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:14.18.2-2.module+el8.5.0+733+de4fee6cRLSA-2022:0350
Rocky Linux8nodejs1:16.13.1-3.module+el8.5.0+721+4c107270RLSA-2021:5171
Rocky Linux8nodejs-nodemon0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2021:5171 RLSA-2022:0350
Rocky Linux8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2022:0350
Rocky Linux8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2022:0350
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2022:0350
Rocky Linux8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2021:5171
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2021:5171

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; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

npm versions 8.0.0 and older provide a vulnerable version of the json-schema library. However, it is currently believed that in the context of npm, it is not possible to take advantage of the vulnerability.

Red Hat Enterprise Linux version 8 and Software Collections provide a vulnerable version of the json-schema library only as embedded in the npm package. As a result, the severity of the incident has been lowered for these 2 products.

Red Hat Quay includes json-schema as a development dependency of quay-registry-container. As a result, the impact rating has been lowered to Moderate.

In Red Hat OpenShift Container Platform (RHOCP), Red Hat Openshift Data Foundations (ODF), Red Hat distributed tracing, Migration Toolkit for Virtualization (MTV) and Red Hat Advanced Cluster Management for Kubernetes (RHACM) the affected components are behind OpenShift OAuth. This restricts access to the vulnerable json-schema library to authenticated users only, therefore the impact is reduced to Moderate.

In Red Hat Openshift Data Foundations (ODF) the odf4/mcg-core-rhel8 component has "Will not fix status", but starting from ODF 4.11 stream this component contains already patched version of the json-schema library. Earlier version of ODF are already under Maintenance Support phase, hence this vulnerability will not be fixed.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8060020220523160029.ad008a3aFixed 2022-06-21RHEA-2022:5139
Red Hat Enterprise Linux 8nodejs:16-8050020211206113934.c5368500Fixed 2021-12-16RHSA-2021:5171
Red Hat Enterprise Linux 8nodejs:14-8050020211213115342.c5368500Fixed 2022-02-01RHSA-2022:0350
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsnodejs:12-8010020220518102644.c27ad7f8Fixed 2022-06-07RHEA-2022:4925
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:12-8020020220523154454.4cda2c84Fixed 2022-06-28RHEA-2022:5221
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:12-8040020220523155137.522a0ee4Fixed 2022-07-19RHEA-2022:5615
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020211213111158.522a0ee4Fixed 2022-01-25RHSA-2022:0246
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.18.2-1.el7Fixed 2022-01-06RHSA-2022:0041
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-nodemon-0:2.0.3-6.el7Fixed 2022-01-06RHSA-2022:0041
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.22.12-2.el7Fixed 2022-06-06RHSA-2022:4914
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Will not fix
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Affected
OpenShift Service Mesh 2.1servicemesh-grafanaAffected
OpenShift Service Mesh 2.1servicemesh-prometheusAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-api-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-header-rhel8Will not fix
18 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-2021-3918.

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