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

Published Oct 3, 2021
·
Updated

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

Other sources

Json-schema could allow a remote attacker to execute arbitrary code on the system, caused by an improperly controlled modification of object prototype attributes. By sending a specially crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.

IBM

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

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.

Affected Software

10 affected componentsFixes available
redhat/rh-nodejs14-nodejs<0:14.18.2-1.el7
0:14.18.2-1.el7
redhat/rh-nodejs14-nodejs-nodemon<0:2.0.3-6.el7
0:2.0.3-6.el7
redhat/rh-nodejs12-nodejs<0:12.22.12-2.el7
0:12.22.12-2.el7
npm/json-schema<0.4.0
0.4.0
IBM Security Verify Governance<=10.0
Json-schema Project Json-schema<0.4.0
Debian Debian Linux=10.0
redhat/nodejs-json-schema<0.4.0
0.4.0
redhat/node<16.11.0
16.11.0
redhat/npm<8.1.0
8.1.0

Event History

Oct 3, 2021
CVE Published
12:00 AM
Nov 13, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Nov 18, 2021
Data Sourced
via Red Hat·05:32 PM
DescriptionSeverityAffected Software
Nov 19, 2021
Advisory Published
via GitHub·08:16 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this vulnerability?

The vulnerability ID of this vulnerability is CVE-2021-3918.

2

What is the title of this vulnerability?

The title of this vulnerability is 'json-schema is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ( Prototype Pollution ) vulnerability'.

3

What is the severity of CVE-2021-3918?

The severity of CVE-2021-3918 is critical with a CVSS score of 9.8.

4

Which software versions are affected by CVE-2021-3918?

The affected software versions are nodejs-json-schema up to exclusive version 0.4.0, node up to exclusive version 16.11.0, and npm up to exclusive version 8.1.0.

5

How can an attacker exploit CVE-2021-3918?

An attacker can exploit CVE-2021-3918 by providing a specially crafted JSON file for validation, which can lead to arbitrary code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203