GHSA-hrpp-f84w-xhfg: Vue moment Outdated Static Dependency Vulnerability

MODERATE
CVSS 5.3
CWE-1104
Published
Advisory Summary

GHSA-hrpp-f84w-xhfg is a MODERATE (CVSS 5.3) outdated static dependency vulnerability (CWE-1104: Use of Unmaintained Third Party Components) affecting Vue moment libraries in the npm ecosystem. The issue involves outdated static dependency in vue-moment. Remediation is available by upgrading affected packages to version 4.1.0.

GHSA-hrpp-f84w-xhfg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hrpp-f84w-xhfg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-1104: Use of Unmaintained Third Party Components
Affected Product Vue moment
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix GHSA-hrpp-f84w-xhfg

To remediate this vulnerability, upgrade all affected Vue moment 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-moment fixed: 4.1.0
npm install vue-moment@4.1.0
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-moment

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-hrpp-f84w-xhfg, inspect your project dependencies using npm:

npm ls vue-moment

Analyze the terminal output to locate any version of Vue moment in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0), your application is affected.

Note: The npm ls vue-moment 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-1104: Use of Unmaintained Third Party Components, where the product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer. In Vue moment, 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

Versions of `vue-moment` prior to 4.1.0 contain an Outdated Static Dependency. The package depends on `moment` and has it loaded statically instead of as a dependency that can be updated. It has `moment@2.19.1` that contains a Regular Expression Denial of Service vulnerability. ## Recommendation Upgrade to version 4.1.0 or later.

GHSA-hrpp-f84w-xhfg Affected Vue moment Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
vue-moment
npm
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is GHSA-hrpp-f84w-xhfg?
GHSA-hrpp-f84w-xhfg is a security vulnerability in Vue moment involving Outdated Static Dependency in vue-moment under CWE-1104: Use of Unmaintained Third Party Components.
Which Vue moment versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: vue-moment.
What version fixes GHSA-hrpp-f84w-xhfg?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vue-moment affected?
Yes, vue-moment is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of GHSA-hrpp-f84w-xhfg?
GHSA-hrpp-f84w-xhfg has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with GHSA-hrpp-f84w-xhfg?
GHSA-hrpp-f84w-xhfg is classified under CWE-1104: Use of Unmaintained Third Party Components (The product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer.).
How can I check npm dependencies for GHSA-hrpp-f84w-xhfg?
Run the dependency tree command: 'npm ls vue-moment'. 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-hrpp-f84w-xhfg",
  "modified" : "2021-10-04T19:13:23Z",
  "published" : "2020-09-04T16:55:06Z",
  "aliases" : [ ],
  "summary" : "Outdated Static Dependency in vue-moment",
  "details" : "Versions of `vue-moment` prior to 4.1.0 contain an Outdated Static Dependency. The package depends on `moment` and has it loaded statically instead of as a dependency that can be updated. It has `moment@2.19.1` that contains a Regular Expression Denial of Service vulnerability.\n\n\n## Recommendation\n\nUpgrade to version 4.1.0 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vue-moment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/brockpetrie/vue-moment/commit/a265e54660a7181a6795a12a97cebac5b305746e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/brockpetrie/vue-moment"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-VUEMOMENT-538934"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1425"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/532"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1104" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:58:51Z",
    "nvd_published_at" : null
  }
}