Skip to content

CVE-2021-23382 Might apply? #45

Closed
@prb112

Description

@prb112

Dear SCSS-Tokenizer Team,

In scanning my node_modules for Regular Expression Denial of Service (ReDoS) Affecting org.webjars.npm:postcss and CVE-2021-23382

I encountered scss-tokenizer with previous-map.js with the same style regular expression that is cited in the CVE commit.

postcss

    return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()

scss-tokenizer

let match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)

It's slightly different, and maybe worth your time to double check.

I hope this helps.

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