Skip to content

javascript-serialize XSS Vulnerability #1574

Open
@himanshuDaxko

Description

@himanshuDaxko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions