CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 3.8% estimated probability of exploitation activity in the next 30 days. Fixed in json-schema 0.4.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hjson-schema (npm): fixed in 0.4.0Explain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| kriszyp/json-schema | through 0.3.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-896r-f27r-55mw | npm | json-schema | <0.4.0 | 0.4.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | node-json-schema | 0.2.3-1+deb10u1 | DLA-3228-1 |
| Debian | 12, 13, 14 | node-json-schema | 0.4.0+~7.0.9-1 | DEBIAN-CVE-2021-3918 |
| Ubuntu | 18.04:LTS | node-json-schema | 0.2.3-1+deb10u1build0.18.04.1 | UBUNTU-CVE-2021-3918 USN-6103-1 |
| Ubuntu | 20.04:LTS | node-json-schema | 0.2.3-1+deb10u1build0.20.04.1 | UBUNTU-CVE-2021-3918 USN-6103-1 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:12.22.12-1.module+el8.6.0+15324+1f2c5d8d | RHEA-2022:5139 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:14.18.2-2.module+el8.5.0+13644+8d46dafd | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:16.13.1-3.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+13504+a2e74d91 | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.3-1.module+el8.4.0+11732+c668cc9f | RHEA-2022:5139 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging | 0:17-3.module+el8.1.0+3369+37ae6a45 | RHEA-2022:5139 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging | 0:23-3.module+el8.3.0+6519+9f98ed83 | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging | 0:25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:6.14.15-1.14.18.2.2.module+el8.5.0+13644+8d46dafd | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:6.14.16-1.12.22.12.1.module+el8.6.0+15324+1f2c5d8d | RHEA-2022:5139 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| 21 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 more | nodejs-common | 2.0-3.4.1 | SUSE-SU-2022:0704-1 |
| SUSE | Enterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 more | nodejs10 | 10.24.1-150000.1.44.1 | SUSE-SU-2022:1717-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 more | nodejs8 | 8.17.0-3.54.2 | SUSE-SU-2022:0563-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 more | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 more | nodejs12 | 12.22.10-4.29.3 | SUSE-SU-2022:0657-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 more | nodejs14 | 14.19.0-15.27.1 | SUSE-SU-2022:0715-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 more | nodejs8 | 8.17.0-10.19.2 | SUSE-SU-2022:0704-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Module for Package Hub 15 SP5 | grafana | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP5 | grafana | 9.5.8-150200.3.53.2 | SUSE-RU-2024:0511-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs10 | 10.24.1-1.46.1 | SUSE-SU-2022:0570-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs12 | 12.22.10-1.42.2 | SUSE-SU-2022:0531-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs14 | 14.19.0-6.24.1 | SUSE-SU-2022:0569-1 |
| 65 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.3 | nodejs12 | 12.22.10-4.29.3 | openSUSE-SU-2022:0657-1 |
| openSUSE | Leap 15.3 | nodejs14 | 14.19.0-15.27.1 | openSUSE-SU-2022:0715-1 |
| openSUSE | Leap 15.3 | nodejs8 | 8.17.0-10.19.2 | openSUSE-SU-2022:0704-1 |
| openSUSE | Leap 15.3, Leap 15.4 | nodejs10 | 10.24.1-150000.1.44.1 | SUSE-SU-2022:1717-1 |
| openSUSE | Leap 15.4 | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | dracut-saltboot | 0.1.1681904360.84ef141-150000.1.50.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | grafana | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| openSUSE | Leap 15.4, Leap 15.5 | spacecmd | 4.3.21-150000.3.98.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | wire | 0.5.0-150000.1.12.3 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.5 | golang-github-lusitaniae-apache_exporter | 1.0.0-150000.1.20.1 | SUSE-SU-2024:0487-1 |
| openSUSE | Leap 15.5 | grafana | 9.5.8-150200.3.53.2 | SUSE-RU-2024:0511-1 |
| openSUSE | Leap 15.5 | prometheus-postgres_exporter | 0.10.1-150000.1.17.1 | SUSE-SU-2024:0487-1 |
| 2 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-nodemon | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 | ALSA-2021:5171 ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-packaging | 23-3.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-packaging | 25-1.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs-packaging | 25-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux | 8 | npm | 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| 3 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | nodejs | 1:14.18.2-2.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs | 1:16.13.1-3.module+el8.5.0+721+4c107270 | RLSA-2021:5171 |
| Rocky Linux | 8 | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+721+4c107270 | RLSA-2021:5171 RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:25-1.module+el8.5.0+702+221f14e6 | RLSA-2021:5171 |
| Rocky Linux | 8 | nodejs-packaging | 0:25-1.module+el8.6.0+1046+80feca58 | RLSA-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 rates this Important.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:12-8060020220523160029.ad008a3a | Fixed 2022-06-21 | RHEA-2022:5139 |
| Red Hat Enterprise Linux 8 | nodejs:16-8050020211206113934.c5368500 | Fixed 2021-12-16 | RHSA-2021:5171 |
| Red Hat Enterprise Linux 8 | nodejs:14-8050020211213115342.c5368500 | Fixed 2022-02-01 | RHSA-2022:0350 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | nodejs:12-8010020220518102644.c27ad7f8 | Fixed 2022-06-07 | RHEA-2022:4925 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | nodejs:12-8020020220523154454.4cda2c84 | Fixed 2022-06-28 | RHEA-2022:5221 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | nodejs:12-8040020220523155137.522a0ee4 | Fixed 2022-07-19 | RHEA-2022:5615 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | nodejs:14-8040020211213111158.522a0ee4 | Fixed 2022-01-25 | RHSA-2022:0246 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs-0:14.18.2-1.el7 | Fixed 2022-01-06 | RHSA-2022:0041 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs-nodemon-0:2.0.3-6.el7 | Fixed 2022-01-06 | RHSA-2022:0041 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs12-nodejs-0:12.22.12-2.el7 | Fixed 2022-06-06 | RHSA-2022:4914 |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/kibana6-rhel8 | Not affected | |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-ui-rhel8 | Will not fix | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Affected | |
| OpenShift Service Mesh 2.1 | openshift-service-mesh/kiali-rhel8 | Affected | |
| OpenShift Service Mesh 2.1 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.1 | servicemesh-prometheus | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/application-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-header-rhel8 | Will 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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.