GHSA-hrpp-f84w-xhfg: Vue moment Outdated Static Dependency Vulnerability
MODERATEGHSA-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
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).
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.
npm install vue-moment@4.1.0
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
GHSA-hrpp-f84w-xhfg Affected Vue moment Versions
1 component(s)| 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?
Which Vue moment versions are affected?
What version fixes GHSA-hrpp-f84w-xhfg?
Is vue-moment affected?
What is the CVSS score of GHSA-hrpp-f84w-xhfg?
What CWE is associated with GHSA-hrpp-f84w-xhfg?
How can I check npm dependencies for GHSA-hrpp-f84w-xhfg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}