GHSA-h97g-4mx7-5p2p: Apostrophe Open Redirect Vulnerability

MODERATE
CWE-601
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-h97g-4mx7-5p2p
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Apostrophe
Package Ecosystem npm
Published Date
Last Updated

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.

apostrophe fixed: 2.92.0
npm install apostrophe@2.92.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 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

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. ## Recommendation Update to version 2.92.0 or later.

GHSA-h97g-4mx7-5p2p Affected Apostrophe Versions

1 component(s)
Fixed Versions:
2.92.0
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?
GHSA-h97g-4mx7-5p2p is a security vulnerability in Apostrophe involving Open Redirect in apostrophe under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Apostrophe versions are affected?
Affected versions include releases prior to 2.92.0 across affected packages: apostrophe.
What version fixes GHSA-h97g-4mx7-5p2p?
Upgrading to 2.92.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apostrophe affected?
Yes, apostrophe is affected in releases prior to 2.92.0. Upgrade your dependency to 2.92.0 or later.
What CWE is associated with GHSA-h97g-4mx7-5p2p?
GHSA-h97g-4mx7-5p2p is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for GHSA-h97g-4mx7-5p2p?
Run the dependency tree command: 'npm ls apostrophe'. 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-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
  }
}