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.)
Remediation
References
https://hackerone.com/bugs?subject=user&report_id=894259
https://github.com/ajv-validator/ajv/releases/tag/v6.12.3
https://github.com/ajv-validator/ajv/tags
https://security.netapp.com/advisory/ntap-20240621-0007/
Related Vulnerabilities
CVE-2020-7640 Vulnerability in npm package fun-map
CVE-2017-20160 Vulnerability in npm package express-param
CVE-2019-12395 Vulnerability in maven package us.dynmap:dynmap
CVE-2020-8910 Vulnerability in npm package google-closure-library
CVE-2018-1000820 Vulnerability in maven package org.neo4j.procedure:apoc