Skip to content

ReDoS in html-parse-string #2

@yetingli

Description

@yetingli

Hi,

I would like to report two Regular Expression Denial of Service (REDoS) vulnerability in html-parse-string.

It allows cause a denial of service when parsing crafted invalid HTML strings.

You can execute the code below to reproduce the vulnerability.​

var htmlParseString = require("html-parse-string")
htmlParseString.parse('<!""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""!')

Feel free to contact me if you have any questions.

Best regards,
Yeting Li​​​​

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions