Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize URL string contents to prevent XSS #173

Merged
merged 1 commit into from Jan 9, 2024

Conversation

rrdelaney
Copy link
Contributor

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Fixes #172 by implementing @redonkulus's excellent suggestion. Additionally updates the tests to expect the newly encoded URL values, and adds a new test to ensure the serialized output does not contain any unsafe characters.

Thanks again to @redonkulus for finding and suggesting the fix!

Copy link
Collaborator

@redonkulus redonkulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for the quick PR!

@redonkulus redonkulus merged commit f27d65d into yahoo:main Jan 9, 2024
2 checks passed
@redonkulus
Copy link
Collaborator

redonkulus commented Jan 9, 2024

New version with the fix published https://github.com/yahoo/serialize-javascript/releases/tag/v6.0.2. Thanks again!

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.

Security vulnerability for non-HTTP URLs
2 participants