Vulnerabilities / CVE-2021-3918

critical

CVE-2021-3918

nodejs-json-schema: Prototype pollution vulnerability

Published Modified CWE 1321
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
npm::GitHub Security Advisory npmjson-schema0.4.0
alma 8nodejs:14::nodejs, nodejs:14::nodejs-devel, nodejs:14::nodejs-docs and 11 more1:14.18.2-2.module_el8.5.0+2618+8d46dafd and 8 more
debian 10node-json-schema0.2.3-1+deb10u1
debian 11node-json-schema0.3.0+~7.0.6-1+deb11u1
debian 12node-json-schema0.4.0+~7.0.9-1
debian 13node-json-schema0.4.0+~7.0.9-1
debian 14node-json-schema0.4.0+~7.0.9-1
echonode-json-schema0.4.0+~7.0.9-1
Oracle Linux 8nodejs, nodejs-devel, nodejs-docs and 4 more1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 and 3 more
Red Hatservicemesh-grafana, servicemesh-grafana-prometheus, servicemesh-prometheusno fix listed
rocky 8nodejs, nodejs-devel, nodejs-docs and 17 more1:16.13.1-3.module+el8.5.0+721+4c107270 and 7 more
ubuntu 18.04node-json-schema0.2.3-1+deb10u1build0.18.04.1
Show all 55 entries from 15 sources
SourcePackageFixed in
npm::GitHub Security Advisory npmjson-schema0.4.0
alma 8nodejs:14::nodejs1:14.18.2-2.module_el8.5.0+2618+8d46dafd
alma 8nodejs:14::nodejs-devel1:14.18.2-2.module_el8.5.0+2618+8d46dafd
alma 8nodejs:14::nodejs-docs1:14.18.2-2.module_el8.5.0+254+b4526b16
alma 8nodejs:14::nodejs-full-i18n1:14.18.2-2.module_el8.5.0+2618+8d46dafd
alma 8nodejs:14::nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748af
alma 8nodejs:14::nodejs-packaging23-3.module_el8.4.0+2522+3bd42762
alma 8nodejs:14::npm1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd
alma 8nodejs:16::nodejs1:16.13.1-3.module_el8.5.0+2605+45d748af
alma 8nodejs:16::nodejs-devel1:16.13.1-3.module_el8.5.0+2605+45d748af
alma 8nodejs:16::nodejs-docs1:16.13.1-3.module_el8.5.0+246+05401605
alma 8nodejs:16::nodejs-full-i18n1:16.13.1-3.module_el8.5.0+2605+45d748af
alma 8nodejs:16::nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748af
alma 8nodejs:16::nodejs-packaging25-1.module_el8.5.0+246+05401605
alma 8nodejs:16::npm1:8.1.2-1.16.13.1.3.module_el8.5.0+2605+45d748af
debian 10node-json-schema0.2.3-1+deb10u1
debian 11node-json-schema0.3.0+~7.0.6-1+deb11u1
debian 12node-json-schema0.4.0+~7.0.9-1
debian 13node-json-schema0.4.0+~7.0.9-1
debian 14node-json-schema0.4.0+~7.0.9-1
echonode-json-schema0.4.0+~7.0.9-1
Oracle Linux 8nodejs1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44
Oracle Linux 8nodejs-devel1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44
Oracle Linux 8nodejs-docs1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44
Oracle Linux 8nodejs-full-i18n1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44
Oracle Linux 8nodejs-nodemon2.0.15-1.module+el8.5.0+20489+261d51d3
Oracle Linux 8nodejs-packaging25-1.module+el8.5.0+20388+4b61e68d
Oracle Linux 8npm1:8.1.2-1.16.13.1.3.0.1.module+el8.5.0+20457+52828f44
Red Hatservicemesh-grafanano fix listed
Red Hatservicemesh-grafana-prometheusno fix listed
Red Hatservicemesh-prometheusno fix listed
rocky 8nodejs1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs-devel1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs-docs1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs-full-i18n1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs-nodemon2.0.15-1.module+el8.6.0+978+59f26232
rocky 8nodejs:14::nodejs1:14.18.2-2.module+el8.5.0+733+de4fee6c
rocky 8nodejs:14::nodejs-devel1:14.18.2-2.module+el8.5.0+733+de4fee6c
rocky 8nodejs:14::nodejs-docs1:14.18.2-2.module+el8.5.0+733+de4fee6c
rocky 8nodejs:14::nodejs-full-i18n1:14.18.2-2.module+el8.5.0+733+de4fee6c
rocky 8nodejs:14::nodejs-nodemon2.0.15-1.module+el8.5.0+721+4c107270
rocky 8nodejs:14::nodejs-packaging23-3.module+el8.7.0+1071+4bdda2a8
rocky 8nodejs:14::npm1:6.14.15-1.14.18.2.2.module+el8.5.0+733+de4fee6c
rocky 8nodejs:16::nodejs1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs:16::nodejs-devel1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs:16::nodejs-docs1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs:16::nodejs-full-i18n1:16.13.1-3.module+el8.5.0+721+4c107270
rocky 8nodejs:16::nodejs-nodemon2.0.15-1.module+el8.5.0+721+4c107270
rocky 8nodejs:16::nodejs-packaging25-1.module+el8.6.0+1046+80feca58
rocky 8nodejs:16::npm1:8.1.2-1.16.13.1.3.module+el8.5.0+721+4c107270
rocky 8npm1:8.1.2-1.16.13.1.3.module+el8.5.0+721+4c107270
ubuntu 18.04node-json-schema0.2.3-1+deb10u1build0.18.04.1
ubuntu 18.04-ESMnode-json-schema0.2.3-1+deb10u1build0.18.04.1
ubuntu 20.04node-json-schema0.2.3-1+deb10u1build0.20.04.1
ubuntu 20.04-ESMnode-json-schema0.2.3-1+deb10u1build0.20.04.1

References

All 35 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.