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

javascript-serialize XSS Vulnerability #1574

Open
himanshuDaxko opened this issue Sep 10, 2024 · 0 comments
Open

javascript-serialize XSS Vulnerability #1574

himanshuDaxko opened this issue Sep 10, 2024 · 0 comments

Comments

@himanshuDaxko
Copy link

Describe the bug
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to unsanitized URLs. An Attacker can introduce unsafe HTML characters through non-http URLs.

Versions
vue: 3
vue-apollo: upto 4.2.1

Additional context
`const serialize = require('serialize-javascript');

let x = serialize({
x: new URL("x:</script>")
});

console.log(x)`

Guess this got fixed in serialize-javascript 6.0.2

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

No branches or pull requests

1 participant