CVEfocus › CVE database › CVE-2021-3918

CVE-2021-3918Prototype Pollution in kriszyp/json-schema

CVSS 9.8 CriticalEPSS 3.8% (higher than 91% of CVEs)Published 2021-11-13Updated 2025-01-17Assigner: @huntrdev

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

CWE-1321

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu, npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

23Fixed
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04node-json-schemaNot affected
vulnerable_code_not_present
Ubuntu 20.04node-json-schemaFixed0.2.3-1+deb10u1build0.20.04.1UBUNTU-CVE-2021-3918
Ubuntu 18.04node-json-schemaFixed0.2.3-1+deb10u1build0.18.04.1UBUNTU-CVE-2021-3918
Debian 14node-json-schemaFixed0.4.0+~7.0.9-1DEBIAN-CVE-2021-3918
Debian 13node-json-schemaFixed0.4.0+~7.0.9-1DEBIAN-CVE-2021-3918
Debian 12node-json-schemaFixed0.4.0+~7.0.9-1DEBIAN-CVE-2021-3918
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8nodejsFixed1:16.13.1-3.module+el8.5.0+13548+45d748afRHEA-2022:5139
Red Hat Enterprise Linux 8nodejs-develFixed1:12.22.12-1.module+el8.6.0+15324+1f2c5d8dRHSA-2022:0350
Red Hat Enterprise Linux 8nodejs-docsFixed1:16.13.1-3.module+el8.5.0+13548+45d748afRHSA-2022:0350
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:14.18.2-2.module+el8.5.0+13644+8d46dafdRHEA-2022:5139
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.15-1.module+el8.5.0+13504+a2e74d91RHEA-2022:5139
Red Hat Enterprise Linux 8nodejs-packagingFixed0:23-3.module+el8.3.0+6519+9f98ed83RHEA-2022:5139
Red Hat Enterprise Linux 8npmFixed1:8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748afRHSA-2022:0350
AlmaLinux 8nodejsFixed1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux 8nodejs-develFixed1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux 8nodejs-docsFixed1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux 8nodejs-full-i18nFixed1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux 8nodejs-nodemonFixed2.0.15-1.module_el8.5.0+2605+45d748afALSA-2022:0350
AlmaLinux 8nodejs-packagingFixed25-1.module_el8.5.0+246+05401605ALSA-2022:0350
AlmaLinux 8npmFixed1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16ALSA-2022:0350
Rocky Linux 8nodejsFixed1:16.13.1-3.module+el8.5.0+721+4c107270RLSA-2022:0350
Rocky Linux 8nodejs-nodemonFixed0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2022:0350
Rocky Linux 8nodejs-packagingFixed0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2022:0350
npm libraryjson-schemaFixed0.4.0GHSA-896r-f27r-55mw

What the vendor says

As published in the CVE record by @huntrdev, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.