marked(">".repeat(5000)) crashes with recursion error #1462
Labels
has PR
The issue has a Pull Request associated
L0 - security
A security vulnerability within the Marked library is discovered
Describe the bug
marked(">".repeat(5000))
crashes with a recursion error. The exact bound is JS engine dependent, of course: I get the error with Node at 3842, Chrome at 3931, and Firefox at 49392.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Marked should avoid algorithms that rely on unbounded recursion.
The text was updated successfully, but these errors were encountered: