CVE-2021-3918
nodejs-json-schema: Prototype pollution vulnerability
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | json-schema | 0.4.0 |
| alma 8 | nodejs:14::nodejs, nodejs:14::nodejs-devel, nodejs:14::nodejs-docs and 11 more | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd and 8 more |
| debian 10 | node-json-schema | 0.2.3-1+deb10u1 |
| debian 11 | node-json-schema | 0.3.0+~7.0.6-1+deb11u1 |
| debian 12 | node-json-schema | 0.4.0+~7.0.9-1 |
| debian 13 | node-json-schema | 0.4.0+~7.0.9-1 |
| debian 14 | node-json-schema | 0.4.0+~7.0.9-1 |
| echo | node-json-schema | 0.4.0+~7.0.9-1 |
| Oracle Linux 8 | nodejs, nodejs-devel, nodejs-docs and 4 more | 1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 and 3 more |
| Red Hat | servicemesh-grafana, servicemesh-grafana-prometheus, servicemesh-prometheus | no fix listed |
| rocky 8 | nodejs, nodejs-devel, nodejs-docs and 17 more | 1:16.13.1-3.module+el8.5.0+721+4c107270 and 7 more |
| ubuntu 18.04 | node-json-schema | 0.2.3-1+deb10u1build0.18.04.1 |
Show all 55 entries from 15 sources
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | json-schema | 0.4.0 |
| alma 8 | nodejs:14::nodejs | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd |
| alma 8 | nodejs:14::nodejs-devel | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd |
| alma 8 | nodejs:14::nodejs-docs | 1:14.18.2-2.module_el8.5.0+254+b4526b16 |
| alma 8 | nodejs:14::nodejs-full-i18n | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd |
| alma 8 | nodejs:14::nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af |
| alma 8 | nodejs:14::nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
| alma 8 | nodejs:14::npm | 1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd |
| alma 8 | nodejs:16::nodejs | 1:16.13.1-3.module_el8.5.0+2605+45d748af |
| alma 8 | nodejs:16::nodejs-devel | 1:16.13.1-3.module_el8.5.0+2605+45d748af |
| alma 8 | nodejs:16::nodejs-docs | 1:16.13.1-3.module_el8.5.0+246+05401605 |
| alma 8 | nodejs:16::nodejs-full-i18n | 1:16.13.1-3.module_el8.5.0+2605+45d748af |
| alma 8 | nodejs:16::nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af |
| alma 8 | nodejs:16::nodejs-packaging | 25-1.module_el8.5.0+246+05401605 |
| alma 8 | nodejs:16::npm | 1:8.1.2-1.16.13.1.3.module_el8.5.0+2605+45d748af |
| debian 10 | node-json-schema | 0.2.3-1+deb10u1 |
| debian 11 | node-json-schema | 0.3.0+~7.0.6-1+deb11u1 |
| debian 12 | node-json-schema | 0.4.0+~7.0.9-1 |
| debian 13 | node-json-schema | 0.4.0+~7.0.9-1 |
| debian 14 | node-json-schema | 0.4.0+~7.0.9-1 |
| echo | node-json-schema | 0.4.0+~7.0.9-1 |
| Oracle Linux 8 | nodejs | 1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 |
| Oracle Linux 8 | nodejs-devel | 1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 |
| Oracle Linux 8 | nodejs-docs | 1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 |
| Oracle Linux 8 | nodejs-full-i18n | 1:16.13.1-3.0.1.module+el8.5.0+20457+52828f44 |
| Oracle Linux 8 | nodejs-nodemon | 2.0.15-1.module+el8.5.0+20489+261d51d3 |
| Oracle Linux 8 | nodejs-packaging | 25-1.module+el8.5.0+20388+4b61e68d |
| Oracle Linux 8 | npm | 1:8.1.2-1.16.13.1.3.0.1.module+el8.5.0+20457+52828f44 |
| Red Hat | servicemesh-grafana | no fix listed |
| Red Hat | servicemesh-grafana-prometheus | no fix listed |
| Red Hat | servicemesh-prometheus | no fix listed |
| rocky 8 | nodejs | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs-devel | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs-docs | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs-full-i18n | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs-nodemon | 2.0.15-1.module+el8.6.0+978+59f26232 |
| rocky 8 | nodejs:14::nodejs | 1:14.18.2-2.module+el8.5.0+733+de4fee6c |
| rocky 8 | nodejs:14::nodejs-devel | 1:14.18.2-2.module+el8.5.0+733+de4fee6c |
| rocky 8 | nodejs:14::nodejs-docs | 1:14.18.2-2.module+el8.5.0+733+de4fee6c |
| rocky 8 | nodejs:14::nodejs-full-i18n | 1:14.18.2-2.module+el8.5.0+733+de4fee6c |
| rocky 8 | nodejs:14::nodejs-nodemon | 2.0.15-1.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:14::nodejs-packaging | 23-3.module+el8.7.0+1071+4bdda2a8 |
| rocky 8 | nodejs:14::npm | 1:6.14.15-1.14.18.2.2.module+el8.5.0+733+de4fee6c |
| rocky 8 | nodejs:16::nodejs | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:16::nodejs-devel | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:16::nodejs-docs | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:16::nodejs-full-i18n | 1:16.13.1-3.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:16::nodejs-nodemon | 2.0.15-1.module+el8.5.0+721+4c107270 |
| rocky 8 | nodejs:16::nodejs-packaging | 25-1.module+el8.6.0+1046+80feca58 |
| rocky 8 | nodejs:16::npm | 1:8.1.2-1.16.13.1.3.module+el8.5.0+721+4c107270 |
| rocky 8 | npm | 1:8.1.2-1.16.13.1.3.module+el8.5.0+721+4c107270 |
| ubuntu 18.04 | node-json-schema | 0.2.3-1+deb10u1build0.18.04.1 |
| ubuntu 18.04-ESM | node-json-schema | 0.2.3-1+deb10u1build0.18.04.1 |
| ubuntu 20.04 | node-json-schema | 0.2.3-1+deb10u1build0.20.04.1 |
| ubuntu 20.04-ESM | node-json-schema | 0.2.3-1+deb10u1build0.20.04.1 |
References
- https://access.redhat.com/security/cve/CVE-2021-3918
- https://bugzilla.redhat.com/show_bug.cgi?id=1907444
- https://bugzilla.redhat.com/show_bug.cgi?id=1945459
- https://bugzilla.redhat.com/show_bug.cgi?id=1964461
- https://bugzilla.redhat.com/show_bug.cgi?id=1999731
- https://bugzilla.redhat.com/show_bug.cgi?id=1999739
- https://bugzilla.redhat.com/show_bug.cgi?id=2007557
- https://bugzilla.redhat.com/show_bug.cgi?id=2014057
All 35 references
- https://bugzilla.redhat.com/show_bug.cgi?id=2014059
- https://bugzilla.redhat.com/show_bug.cgi?id=2024702
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28469
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7788
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22959
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22960
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33502
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37701
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37712
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3807
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3918
- https://errata.almalinux.org/8/ALSA-2022-0350.html
- https://errata.rockylinux.org/RLSA-2022:0350
- https://github.com/kriszyp/json-schema
- https://github.com/kriszyp/json-schema/commit/22f146111f541d9737e832823699ad3528ca7741
- https://github.com/kriszyp/json-schema/commit/22f146111f541d9737e832823699ad3528ca7741%20%28v0.4.0%29
- https://github.com/kriszyp/json-schema/commit/b62f1da1ff5442f23443d6be6a92d00e65cba93a
- https://github.com/kriszyp/json-schema/commit/f6f6a3b02d667aa4ba2d5d50cc19208c4462abfa
- https://huntr.dev/bounties/bb6ccd63-f505-4e3a-b55f-cd2662c261a9
- https://linux.oracle.com/cve/CVE-2021-3918.html
- https://linux.oracle.com/errata/ELSA-2022-0350.html
- https://lists.debian.org/debian-lts-announce/2022/12/msg00013.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-3918
- https://security.netapp.com/advisory/ntap-20250117-0004
- https://security.netapp.com/advisory/ntap-20250117-0004/
- https://ubuntu.com/security/notices/USN-6103-1
- https://www.cve.org/CVERecord?id=CVE-2021-3918