Repository navigation
fix: fix quadratic execution in em mask - #2818
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Nice! |
calculuschild
left a comment
There was a problem hiding this comment.
Oh wow how did you notice this?
|
@calculuschild: This was one of the first things I learned about when joining Marked on its adventure. Sometimes folks discover vulnerabilities, let the maintainers know, then the maintainers fix the issue. This is how we met @davisjam in fact. (Mainly because I didn't handle it well - see comment history from a few years ago...I learned a lot about OSS in a very short time.) In this case someone from Snyk sent notification in accordance with the security notice: https://github.com/markedjs/marked/blob/master/SECURITY.md @UziTech being the awesome human he is, responded in a timely fashion with proposed solution. Snyk offered feedback to improve. And here we are. Hope that helps (and is an accurate representation). |
## [5.0.3](v5.0.2...v5.0.3) (2023-05-26) ### Bug Fixes * fix quadratic execution in em mask ([#2818](#2818)) ([a37fe8e](a37fe8e))
## [5.0.3](markedjs/marked@v5.0.2...v5.0.3) (2023-05-26) ### Bug Fixes * fix quadratic execution in em mask ([#2818](markedjs/marked#2818)) ([8e83aa2](markedjs/marked@8e83aa2))
Raise the synchronous spec timing limit from one to ten seconds. On magmar, quadratic_em_mask[0]/[2] and quadratic_emstrong_delim[0] pass their output assertions but fail with "took too long" at 1.289s, 1.457s, and 2.386s. Keep the full npm suite and a finite performance limit. No applicable upstream timing fix was found; v18.0.3 already contains the original fixes for these ReDoS regression cases. https://github.com/markedjs/testutils/blob/0b48e035add614e1aac285baed2cbefbf1bebf80/src/run-tests.ts markedjs/marked#2818 markedjs/marked#3906 https://archriscv.felixc.at/.status/logs/marked/marked-18.0.3-1.log
Marked version: v5.0.2
Description
Fix quadratic execution in em mask regexp
Contributor
Committer
In most cases, this should be a different person than the contributor.