Skip to content
OpenAdvisories
Medium · 5.6 CVE-2020-15366 EUVD-2022-1195GHSA-v88g-cgmw-v5xw

Prototype Pollution in Ajv

Published Jul 15, 2020 · Updated Aug 4, 2024 · Assigned by mitre

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.)

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-ajv 6.12.4-1 —
Debian 13 node-ajv 6.12.4-1 —
Debian 12 node-ajv 6.12.4-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-ajv No fix yet —
Ubuntu 18.04 LTS node-ajv No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9502+012d8a97 RHSA-2021:0551, RHSA-2021:0548, RHSA-2020:5499
RHEL 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:0551, RHSA-2021:0548, RHSA-2020:5499
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0551, RHSA-2021:0548, RHSA-2020:5499
RHEL 8 npm 1:6.14.8-1.12.19.1.1.module+el8.3.0+8851+b7b41ca0 RHSA-2021:0551, RHSA-2021:0548, RHSA-2020:5499
RHEL 3 rh-nodejs10-nodejs +2 10.23.1-2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs10-npm 6.14.10-10.23.1.2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs12-nodejs +2 12.19.1-2.el7 RHSA-2020:5305
RHEL 3 rh-nodejs12-npm 6.14.8-12.19.1.2.el7 RHSA-2020:5305
RHEL 3 rh-nodejs14-nodejs +2 14.15.4-2.el7 RHSA-2021:0421
RHEL 3 rh-nodejs14-npm 6.14.10-14.15.4.2.el7 RHSA-2021:0421
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 4 automation-hub +2 4.2.2-1.el7pc RHSA-2021:0781
Red Hat Ansible Automation Platform 4 python-bleach +1 3.3.0-1.el7pc RHSA-2021:0781
Red Hat Ansible Automation Platform 4 python-bleach-allowlist +1 1.0.3-1.el7pc RHSA-2021:0781
Red Hat Ansible Automation Platform 4 python-galaxy-importer +1 0.2.15-1.el7pc RHSA-2021:0781
Red Hat Ansible Automation Platform 4 python-pulp-ansible +1 1:0.5.6-1.el7pc RHSA-2021:0781
Red Hat Ansible Automation Platform 4 python3-django 2.2.18-1.el7pc RHSA-2021:0781

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs-nodemon 1.18.3-1.module_el8.3.0+2023+d2377ea3 ALSA-2021:0551, ALSA-2021:0548, ALSA-2020:5499
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:0551, ALSA-2021:0548, ALSA-2020:5499

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 nodejs-nodemon 1.18.3-1.module+el8.3.0+101+f84c7154 RLSA-2021:0551, RLSA-2021:0548, RLSA-2020:5499
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:0551, RLSA-2021:0548, RLSA-2020:5499

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9642+87902f83 ELSA-2021-0551, ELSA-2021-0548, ELSA-2020-5499
Oracle Linux 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+5392+4d6b561f ELSA-2021-0551, ELSA-2021-0548, ELSA-2020-5499
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5392+4d6b561f ELSA-2021-0551, ELSA-2021-0548, ELSA-2020-5499
Oracle Linux 8 npm 1:6.14.8-1.12.19.1.1.module+el8.3.0+7884+668e4ef8 ELSA-2021-0551, ELSA-2021-0548, ELSA-2020-5499

Affected packages

EcosystemPackageAffectedFixedRecord
npm ajv < 6.12.3 6.12.3 GHSA-v88g-cgmw-v5xw

Advisories 18

References