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.)
CVE-2020-15366 - Medium Severity Vulnerability
Vulnerable Libraries - ajv-5.2.2.tgz, ajv-4.11.8.tgz
ajv-5.2.2.tgz
Another JSON Schema Validator
Library home page: https://registry.npmjs.org/ajv/-/ajv-5.2.2.tgz
Path to dependency file: /vendor/github.com/hashicorp/vault/ui/package.json
Path to vulnerable library: /vendor/github.com/hashicorp/vault/ui/node_modules/ajv/package.json
Dependency Hierarchy: - ember-cli-eslint-4.1.0.tgz (Root Library) - broccoli-lint-eslint-4.1.0.tgz - eslint-4.2.0.tgz - :x: **ajv-5.2.2.tgz** (Vulnerable Library)
ajv-4.11.8.tgz
Another JSON Schema Validator
Library home page: https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz
Path to dependency file: /vendor/github.com/hashicorp/vault/ui/package.json
Path to vulnerable library: /vendor/github.com/hashicorp/vault/ui/node_modules/ajv/package.json
Dependency Hierarchy: - prettier-eslint-cli-4.2.1.tgz (Root Library) - eslint-3.19.0.tgz - table-3.8.3.tgz - :x: **ajv-4.11.8.tgz** (Vulnerable Library)
Found in HEAD commit: 9060713df80212ee5546b36d1083fb607520eb0b
Found in base branch: master
Vulnerability Details
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.)
Publish Date: 2020-07-15
URL: CVE-2020-15366
CVSS 3 Score Details (5.6)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Release Date: 2020-07-15
Fix Resolution (ajv): 6.12.3
Direct dependency fix Resolution (ember-cli-eslint): 5.0.0
Fix Resolution (ajv): 6.12.3
Direct dependency fix Resolution (prettier-eslint-cli): 5.0.0
Step up your Open Source Security Game with Mend here