{"id":"GHSA-6vfc-qv3f-vr6c","summary":"Uncontrolled Resource Consumption in markdown-it","details":"### Impact\n\nSpecial patterns with length \u003e 50K chars can slow down parser significantly.\n\n```js\nconst md = require('markdown-it')();\n\nmd.render(`x ${' '.repeat(150000)} x  \\nx`);\n```\n\n\n### Patches\n\nUpgrade to v12.3.2+\n\n### Workarounds\n\nNo.\n\n### References\n\nFix + test sample: https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101\n","aliases":["CVE-2022-21670"],"modified":"2023-11-08T04:08:07.059316Z","published":"2022-01-12T22:20:22Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-01-10T21:50:05Z","nvd_published_at":"2022-01-10T21:15:00Z","cwe_ids":["CWE-1333","CWE-400"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21670"},{"type":"WEB","url":"https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101"},{"type":"PACKAGE","url":"https://github.com/markdown-it/markdown-it"}],"affected":[{"package":{"name":"markdown-it","ecosystem":"npm","purl":"pkg:npm/markdown-it"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"12.3.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-6vfc-qv3f-vr6c/GHSA-6vfc-qv3f-vr6c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}