VDB
EN
MEDIUM 5.3

GHSA-6vfc-qv3f-vr6c

Uncontrolled Resource Consumption in markdown-it

상세

### 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

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / markdown-it
최초 영향 버전: 0 수정 버전: 12.3.2
수정 npm install markdown-it@12.3.2

참고