CVE-2021-3918 json
Prototype Pollution in kriszyp/json-schema
published 2021-11-13 4 y ago modified 2026-06-17 4 mo ago also GHSA-896r-f27r-55mw , EUVD-2021-2320
- cvss
- 9.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
json-schema is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Patch / fix
- npm json-schema 0.4.0
- json-schema_project json-schema 0.4.0
- node-json-schema Debian 14, Debian 13, Debian 12 0.4.0+~7.0.9-1
debian advisories DEBIAN-CVE-2021-3918
- node-json-schema Ubuntu 18.04 LTS 0.2.3-1+deb10u1build0.18.04.1
- node-json-schema Ubuntu 20.04 LTS 0.2.3-1+deb10u1build0.20.04.1
ubuntu advisories UBUNTU-CVE-2021-3918
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- npm RHEL 8 1:6.14.15-1.14.18.2.2.module+el8.5.0+13644+8d46dafd
- nodejs RHEL 8 1:14.18.2-2.module+el8.5.0+13644+8d46dafd
- nodejs-nodemon RHEL 8 2.0.15-1.module+el8.5.0+13504+a2e74d91
- nodejs-full-i18n RHEL 8 1:14.18.2-2.module+el8.5.0+13644+8d46dafd
- nodejs-packaging RHEL 8, RHEL 8.4 EUS 23-3.module+el8.3.0+6519+9f98ed83
- npm RHEL 8 1:8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748af
- nodejs RHEL 8 1:16.13.1-3.module+el8.5.0+13548+45d748af
- nodejs-nodemon RHEL 8 2.0.15-1.module+el8.5.0+13548+45d748af
red hat advisories RHSA-2022:0350RHSA-2021:5171RHSA-2022:0246RHEA-2022:5139RHEA-2022:5221RHEA-2022:5615
- grafana SLE Module for Package Hub 15 SP5, openSUSE Leap 15.5 9.5.8-150200.3.53.2
- grafana Manager Client Tools 15 9.5.8-150000.1.60.2
- spacecmd openSUSE Leap 15.5, Manager Client Tools 15 4.3.26-150000.3.113.1
- mgr-daemon Manager Client Tools 15 4.3.8-150000.1.44.1
- spacewalk-client-tools Manager Client Tools 15 4.3.18-150000.3.86.2
- prometheus-postgres_exporter openSUSE Leap 15.5, Manager Client Tools 15 0.10.1-150000.1.17.1
- uyuni-proxy-systemd-services Manager Client Tools for SLE Micro 5, Manager Client Tools 15 4.3.10-150000.1.15.1
- golang-github-prometheus-prometheus Manager Client Tools 15 2.45.0-150000.3.53.1
suse advisories SUSE-RU-2024:0511-1SUSE-SU-2024:0487-1SUSE-SU-2024:0486-1SUSE-SU-2024:0196-1SUSE-SU-2024:0191-1SUSE-SU-2023:2579-1
- grafana openSUSE Tumbleweed 9.3.6-1.1
- nodejs14 openSUSE Leap 15.3 14.19.0-15.27.1
- nodejs8 openSUSE Leap 15.3 8.17.0-10.19.2
- nodejs12 openSUSE Leap 15.3 12.22.10-4.29.3
opensuse advisories openSUSE-SU-2024:12723-1openSUSE-SU-2022:0715-1openSUSE-SU-2022:0704-1openSUSE-SU-2022:0657-1
- npm AlmaLinux 8 1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd
- npm AlmaLinux 8 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16
- nodejs AlmaLinux 8 1:14.18.2-2.module_el8.5.0+2618+8d46dafd
- nodejs AlmaLinux 8 1:14.18.2-2.module_el8.5.0+254+b4526b16
- nodejs-nodemon AlmaLinux 8 2.0.15-1.module_el8.6.0+2904+f21ad6f4
- nodejs-nodemon AlmaLinux 8 2.0.15-1.module_el8.5.0+2605+45d748af
- nodejs-nodemon AlmaLinux 8 2.0.15-1.module_el8.5.0+2618+8d46dafd
- nodejs-full-i18n AlmaLinux 8 1:14.18.2-2.module_el8.5.0+2618+8d46dafd
almalinux advisories ALSA-2022:0350ALSA-2021:5171
- nodejs Rocky Linux 8 1:14.18.2-2.module+el8.5.0+733+de4fee6c
- nodejs-nodemon Rocky Linux 8 2.0.15-1.module+el8.5.0+721+4c107270
- nodejs-packaging Rocky Linux 8 23-3.module+el8.7.0+1071+4bdda2a8
- nodejs-packaging Rocky Linux 8 23-3.module+el8.3.0+100+234774f7
- nodejs-packaging Rocky Linux 8 23-3.module+el8.5.0+733+de4fee6c
- nodejs Rocky Linux 8 1:16.13.1-3.module+el8.5.0+721+4c107270
- nodejs-packaging Rocky Linux 8 25-1.module+el8.6.0+1046+80feca58
- nodejs-packaging Rocky Linux 8 25-1.module+el8.5.0+702+221f14e6
rocky linux advisories RLSA-2022:0350RLSA-2021:5171
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3918 updated cvss 9.8
nodejs-json-schema: Prototype pollution vulnerability
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8affected: no fix planned “Will not fix”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheus Red Hat OpenShift Service Mesh 2.1 servicemesh-grafana, servicemesh-prometheus, openshift-service-mesh/kiali-rhel8affected: no fix available
-
Red Hat Advanced Cluster Management for Kubernetes 2 grc-ui-container, rhacm2/console-api, rhacm2/grc-ui-rhel8, grc-ui-api-container, rhacm2/console-rhel8, rhacm2/search-ui-rhel8, +5 moreaffected: no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-grafana, openshift4/ose-thanos-rhel9, openshift4/ose-prometheus-rhel9 Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8, odf4/odf-console-rhel9affected: no fix planned “Will not fix”
-
Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-query-rhel8affected: no fix available
-
Red Hat Quay 3 quay/quay-rhel8affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 14.18.2-2.module+el8.5.0+13644+8d46dafd, nodejs 16.13.1-3.module+el8.5.0+13548+45d748af, nodejs 12.22.12-1.module+el8.6.0+15324+1f2c5d8d, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, +9 morefixed: vendor fix RHSA-2022:0350
-
Red Hat Enterprise Linux AppStream E4S (v. 8.1) nodejs 12.22.12-1.module+el8.1.0+15296+87b2f6ad, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45, npm 6.14.16-1.12.22.12.1.module+el8.1.0+15296+87b2f6ad, nodejs-full-i18n 12.22.12-1.module+el8.1.0+15296+87b2f6adfixed: vendor fix RHEA-2022:4925
show 4 moreshow fewer
-
Red Hat Enterprise Linux AppStream EUS (v. 8.2) nodejs 12.22.12-1.module+el8.2.0+15322+a70ca0ab, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45, npm 6.14.16-1.12.22.12.1.module+el8.2.0+15322+a70ca0ab, nodejs-full-i18n 12.22.12-1.module+el8.2.0+15322+a70ca0abfixed: vendor fix RHEA-2022:5221
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) nodejs 14.18.2-2.module+el8.4.0+13643+6c0ebf22, nodejs 12.22.12-1.module+el8.4.0+15323+4d1cc445, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.3-1.module+el8.4.0+11732+c668cc9f, nodejs-nodemon 2.0.15-1.module+el8.4.0+13503+fc29810b, +4 morefixed: vendor fix RHEA-2022:5615
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-nodejs14-nodejs 14.18.2-1.el7, rh-nodejs12-nodejs 12.22.12-2.el7, rh-nodejs14-npm 6.14.15-14.18.2.1.el7, rh-nodejs12-npm 6.14.16-12.22.12.2.el7, rh-nodejs14-nodejs-nodemon 2.0.3-6.el7 Red Hat Software Collections for RHEL(v. 7) rh-nodejs14-nodejs 14.18.2-1.el7, rh-nodejs12-nodejs 12.22.12-2.el7, rh-nodejs14-npm 6.14.15-14.18.2.1.el7, rh-nodejs12-npm 6.14.16-12.22.12.2.el7, rh-nodejs14-nodejs-nodemon 2.0.3-6.el7fixed: vendor fix RHSA-2022:4914
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/kui-web-terminal-rhel8 Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat OpenShift Application Runtimes vertx-json-schemanot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.83% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/bb6ccd63-f505-4e3a-b55f-cd2662c261a9 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | json-schema | <0.4.0 |
0.4.0 |
Affected products
- kriszyp kriszyp/json-schema
Classification
References
-
github.com
/kriszyp/json-schema/commit/22f146111f541d9737e832823699ad3528ca7741
web, patch, third-party-advisory
-
huntr.dev
/bounties/bb6ccd63-f505-4e3a-b55f-cd2662c261a9
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/kriszyp/json-schema/commit/b62f1da1ff5442f23443d6be6a92d00e65cba93a
web
-
github.com
/kriszyp/json-schema/commit/f6f6a3b02d667aa4ba2d5d50cc19208c4462abfa
web
-
lists.debian.org
/debian-lts-announce/2022/12/msg00013.html
mailing-list, web, third-party-advisory
- security.netapp.com /advisory/ntap-20250117-0004/
-
nvd.nist.gov
/vuln/detail/CVE-2021-3918
advisory
-
github.com
/kriszyp/json-schema
package
-
security.netapp.com
/advisory/ntap-20250117-0004
web
Sources
- CVE List CVE-2021-3918
- GitHub Advisory GHSA-896r-f27r-55mw
- NVD CVE-2021-3918
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.