CVE-2021-3918
Prototype Pollution in kriszyp/json-schema
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
json-schema is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
json-schema es vulnerable a la Modificación Indebida de Atributos de Prototipos de Objetos ('Contaminación de Prototipos')
The json-schema Node.JS library was vulnerable to prototype pollution during the validation of a JSON object. An attacker, able to provide a specially crafted JSON file for validation, could use this flaw to modify the behavior of the node program, to, for example, execute arbitrary code.
An update that fixes 9 vulnerabilities is now available. This update for nodejs10 fixes the following issues. Fixed ReDoS via splitDeviceRe, splitTailRe and splitPathRe. Fixed insufficient symlink protection in node-tar allowing arbitrary file creation and overwrite. Fixed insufficient absolute path sanitization in node-tar allowing arbitrary file creation and overwrite. Fixed improper controlled modification of object prototype attributes in json-schema. Fixed regular expression denial of service matching ANSI escape codes in node-ansi-regex. Fixed prototype pollution via console.table. Fixed prototype pollution in npm dependency. Fixed insuficient sanitation in npm dependency. Fixed passing of cookie data and sensitive headers to different hostnames in node-fetch-npm.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-11-02 CVE Reserved
- 2021-11-13 CVE Published
- 2025-01-17 CVE Updated
- 2025-01-17 First Exploit
- 2025-07-14 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
CAPEC
References (5)
URL | Tag | Source |
---|---|---|
https://lists.debian.org/debian-lts-announce/2022/12/msg00013.html | Mailing List |
|
URL | Date | SRC |
---|---|---|
https://huntr.dev/bounties/bb6ccd63-f505-4e3a-b55f-cd2662c261a9 | 2025-01-17 |
URL | Date | SRC |
---|---|---|
https://github.com/kriszyp/json-schema/commit/22f146111f541d9737e832823699ad3528ca7741 | 2023-02-03 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2021-3918 | 2022-10-19 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2024702 | 2022-10-19 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Json-schema Project Search vendor "Json-schema Project" | Json-schema Search vendor "Json-schema Project" for product "Json-schema" | < 0.4.0 Search vendor "Json-schema Project" for product "Json-schema" and version " < 0.4.0" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 10.0 Search vendor "Debian" for product "Debian Linux" and version "10.0" | - |
Affected
|