[GHSA-hx9m-jf43-8ffr] seroval affected by Denial of Service via RegExp serialization#7463
Open
Wenxin-Jiang wants to merge 1 commit intoWenxin-Jiang/advisory-improvement-7463from
Open
Conversation
Collaborator
|
Hi there @lxsmnsyc! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository. This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
seroval@0.1.0exports onlyserialize()and does not include any deserialization code path. The vulnerabledeserialize()function—whose implementation passes attacker-controlled input to indirect evaluation via(0, eval)(source)(seesrc/index.ts:90)—is first introduced in0.2.0.Because
0.1.0contains no eval-backed deserializer, it provides no sink through which a malicious payload can be executed.Accordingly, the correct introduced version is
0.2.0, which is the first release that actually contains the vulnerable sink. This aligns the affected range with the first version in which the bug is reachable.