GHSA-h97g-4mx7-5p2p: Apostrophe Open Redirect Vulnerability
MODERATEGHSA-h97g-4mx7-5p2p is a MODERATE open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Apostrophe libraries in the npm ecosystem. The issue involves open redirect in apostrophe. Remediation is available by upgrading affected packages to version 2.92.0.
GHSA-h97g-4mx7-5p2p at a Glance
How to Fix GHSA-h97g-4mx7-5p2p
To remediate this vulnerability, upgrade all affected Apostrophe 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 apostrophe@2.92.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls apostrophe
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-h97g-4mx7-5p2p, inspect your project dependencies using npm:
npm ls apostrophe
Analyze the terminal output to locate any version of Apostrophe in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.92.0), your application is affected.
Note: The npm ls apostrophe 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Apostrophe, 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-h97g-4mx7-5p2p Affected Apostrophe Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apostrophe
|
npm |
< 2.92.0
|
2.92.0
|
References
Frequently Asked Questions
What is GHSA-h97g-4mx7-5p2p?
Which Apostrophe versions are affected?
What version fixes GHSA-h97g-4mx7-5p2p?
Is apostrophe affected?
What CWE is associated with GHSA-h97g-4mx7-5p2p?
How can I check npm dependencies for GHSA-h97g-4mx7-5p2p?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h97g-4mx7-5p2p",
"modified" : "2021-09-28T21:18:57Z",
"published" : "2020-09-03T17:11:36Z",
"aliases" : [ ],
"summary" : "Open Redirect in apostrophe",
"details" : "Versions of `apostrophe` prior to 2.92.0 are vulnerable to Open Redirect. The package redirected requests to third-party websites if escaped URLs followed by a trailing `/` were appended at the end.\n\n\n\n## Recommendation\n\nUpdate to version 2.92.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "apostrophe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.92.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/apostrophecms/apostrophe/commit/1eba144bb82bd43dab72ce36cfbd593361b6d9b7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apostrophecms/apostrophe"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-APOSTROPHE-451089"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1029"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:44:44Z",
"nvd_published_at" : null
}
}