Skip to content

Add regression coverage for script close variants#219

Open
TorMatzAndren wants to merge 1 commit into
yahoo:mainfrom
TorMatzAndren:security/script-close-variant-regressions
Open

Add regression coverage for script close variants#219
TorMatzAndren wants to merge 1 commit into
yahoo:mainfrom
TorMatzAndren:security/script-close-variant-regressions

Conversation

@TorMatzAndren
Copy link
Copy Markdown

This adds regression coverage for several script-closing variants inside serialized function bodies.

The existing XSS tests already cover common </script> cases. This expands coverage to mixed-case tags, whitespace variants, and attribute-like variants while also verifying that the serialized function still deserializes to the original payload.

Tested locally with:

npm test

@TorMatzAndren TorMatzAndren changed the title Add regression coveraAdd regression coverage for script close variantsge for script close variants Add regression coverage for script close variantsge for script close variants May 15, 2026
@TorMatzAndren TorMatzAndren changed the title Add regression coverage for script close variantsge for script close variants Add regression coverage for script close variants May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants