@vue/compiler-sfc@2.7.2 vulnerabilities

@vue/compiler-sfc

Direct Vulnerabilities

Known vulnerabilities in the @vue/compiler-sfc package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Regular Expression Denial of Service (ReDoS)

@vue/compiler-sfc is a @vue/compiler-sfc

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) through the parseHTML function in html-parser.ts. An attacker can cause the application to consume excessive resources by supplying a specially crafted input that triggers inefficient regular expression evaluation.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade @vue/compiler-sfc to version 3.0.0-alpha.0 or higher.

<3.0.0-alpha.0