Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. json-schema
  4. ›
  5. CVE-2021-3918

CVE-2021-3918: json-schema is vulnerable to Prototype Pollution

November 19, 2021 (updated January 17, 2025)

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

References

  • github.com/advisories/GHSA-896r-f27r-55mw
  • github.com/kriszyp/json-schema
  • github.com/kriszyp/json-schema/commit/22f146111f541d9737e832823699ad3528ca7741
  • github.com/kriszyp/json-schema/commit/b62f1da1ff5442f23443d6be6a92d00e65cba93a
  • github.com/kriszyp/json-schema/commit/f6f6a3b02d667aa4ba2d5d50cc19208c4462abfa
  • huntr.dev/bounties/bb6ccd63-f505-4e3a-b55f-cd2662c261a9
  • lists.debian.org/debian-lts-announce/2022/12/msg00013.html
  • nvd.nist.gov/vuln/detail/CVE-2021-3918
  • security.netapp.com/advisory/ntap-20250117-0004

Code Behaviors & Features

Detect and mitigate CVE-2021-3918 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/json-schema/CVE-2021-3918.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.