Vulnerabilities in pkg:npm/@vue/cli-plugin-pwa

PACKAGE
Advisory Identifier: GHSA-79vf-hf9f-j9q8
Advisory Summary

CVE-2025-5897 is a MODERATE (CVSS 4.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting @vue/cli plugin pwa libraries in the npm ecosystem. The issue involves @vue/cli-plugin-pwa regular expression denial of service vulnerability. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@vue/cli-plugin-pwa

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@vue/cli-plugin-pwa. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-79vf-hf9f-j9q8 CVE-2025-5897 MODERATE @vue/cli-plugin-pwa Regular Expression Denial of Service vulnerability

CVE-2025-5897 at a Glance

CVE Identifier CVE-2025-5897
GHSA Identifier GHSA-79vf-hf9f-j9q8
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product @vue/cli plugin pwa
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-5897

To remediate this vulnerability, upgrade all affected @vue/cli plugin pwa dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@vue/cli-plugin-pwa fixed: Latest secure release
npm install @vue/cli-plugin-pwa@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @vue/cli-plugin-pwa

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-5897, inspect your project dependencies using npm:

npm ls @vue/cli-plugin-pwa

Analyze the terminal output to locate any version of @vue/cli plugin pwa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @vue/cli-plugin-pwa command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In @vue/cli plugin pwa, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in vuejs vue-cli up to 5.0.8. It has been rated as problematic. This issue affects the function HtmlPwaPlugin of the file packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js of the component Markdown Code Handler. The manipulation leads to inefficient regular expression complexity. The attack may be initiated remotely.

CVE-2025-5897 Affected @vue/cli plugin pwa Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@vue/cli-plugin-pwa
npm
≤ 5.0.8

References

Frequently Asked Questions

What is CVE-2025-5897?
CVE-2025-5897 is a security vulnerability in @vue/cli plugin pwa involving @vue/cli-plugin-pwa Regular Expression Denial of Service vulnerability under CWE-400: Uncontrolled Resource Consumption.
Which @vue/cli plugin pwa versions are affected?
Affected versions include releases prior to current release patches across affected packages: @vue/cli-plugin-pwa.
What version fixes CVE-2025-5897?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @vue/cli-plugin-pwa affected?
Yes, @vue/cli-plugin-pwa is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-5897?
CVE-2025-5897 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-5897?
CVE-2025-5897 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2025-5897?
Run the dependency tree command: 'npm ls @vue/cli-plugin-pwa'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-79vf-hf9f-j9q8",
  "modified" : "2025-06-09T23:10:40Z",
  "published" : "2025-06-09T21:30:52Z",
  "aliases" : [ "CVE-2025-5897" ],
  "summary" : "@vue/cli-plugin-pwa Regular Expression Denial of Service vulnerability",
  "details" : "A vulnerability was found in vuejs vue-cli up to 5.0.8. It has been rated as problematic. This issue affects the function HtmlPwaPlugin of the file packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js of the component Markdown Code Handler. The manipulation leads to inefficient regular expression complexity. The attack may be initiated remotely.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@vue/cli-plugin-pwa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.0.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5897"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vuejs/vue-cli/pull/7478"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vuejs/vue-cli"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.311669"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.311669"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.585798"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-09T23:10:40Z",
    "nvd_published_at" : "2025-06-09T21:15:47Z"
  }
}