ghsa-6vfc-qv3f-vr6c
Vulnerability from github
Published
2022-01-12 22:20
Modified
2022-01-19 18:25
Severity ?
VLAI Severity ?
Summary
Uncontrolled Resource Consumption in markdown-it
Details
Impact
Special patterns with length > 50K chars can slow down parser significantly.
```js const md = require('markdown-it')();
md.render(x ${' '.repeat(150000)} x \nx
);
```
Patches
Upgrade to v12.3.2+
Workarounds
No.
References
Fix + test sample: https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101
{ "affected": [ { "package": { "ecosystem": "npm", "name": "markdown-it" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "12.3.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-21670" ], "database_specific": { "cwe_ids": [ "CWE-1333", "CWE-400" ], "github_reviewed": true, "github_reviewed_at": "2022-01-10T21:50:05Z", "nvd_published_at": "2022-01-10T21:15:00Z", "severity": "MODERATE" }, "details": "### Impact\n\nSpecial patterns with length \u003e 50K chars can slow down parser significantly.\n\n```js\nconst md = require(\u0027markdown-it\u0027)();\n\nmd.render(`x ${\u0027 \u0027.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", "id": "GHSA-6vfc-qv3f-vr6c", "modified": "2022-01-19T18:25:52Z", "published": "2022-01-12T22:20:22Z", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "type": "CVSS_V3" } ], "summary": "Uncontrolled Resource Consumption in markdown-it" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…