GitHub Advisoryadvisory · npm

GHSA-v88g-cgmw-v5xw Prototype Pollution in Ajv

MEDIUM Published 2022-02-10 Modified 2024-06-21 Official page ↗
Aliases
CVE-2020-15366
Ecosystem
npm
Packages
ajv
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-1321, CWE-915
Reviewed
2021-05-10

Affected packages

• npm ajv: < 6.12.3 → fixed in 6.12.3

Description

An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. A carefully crafted JSON schema could be provided that allows execution of other code by prototype pollution. (While untrusted schemas are recommended against, the worst case of an untrusted schema should be a denial of service, not execution of code.)

Related

Alias · CVE (1)

  • CVE-2020-15366 An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. vulnerability

Weakness · CWE (2)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness

References