GHSA-9q64-mpxx-87fg: Ecstatic Open Redirect Vulnerability

HIGH
CWE-601
Published
Advisory Summary

GHSA-9q64-mpxx-87fg is a HIGH open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Ecstatic libraries in the npm ecosystem. The issue involves open redirect in ecstatic. Remediation is available by upgrading affected packages to version 2.2.2, 3.3.2, 4.1.2.

GHSA-9q64-mpxx-87fg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9q64-mpxx-87fg
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Ecstatic
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-9q64-mpxx-87fg

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

ecstatic fixed: 2.2.2
npm install ecstatic@2.2.2
ecstatic fixed: 3.3.2
npm install ecstatic@3.3.2
ecstatic fixed: 4.1.2
npm install ecstatic@4.1.2
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 ecstatic

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-9q64-mpxx-87fg, inspect your project dependencies using npm:

npm ls ecstatic

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

Note: The npm ls ecstatic 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 Ecstatic, 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 `ecstatic` prior to 4.1.2, 3.3.2 or 2.2.2 are vulnerable to Open Redirect. The package fails to validate redirects, allowing attackers to craft requests that result in an `HTTP 301` redirect to any other domains. ## Recommendation If using `ecstatic` 4.x, upgrade to 4.1.2 or later. If using `ecstatic` 3.x, upgrade to 3.3.2 or later. If using `ecstatic` 2.x, upgrade to 2.2.2 or later.

GHSA-9q64-mpxx-87fg Affected Ecstatic Versions

3 component(s)
Fixed Versions:
2.2.23.3.24.1.2
Product / Package Ecosystem Affected Versions Fixed Version
ecstatic
npm
< 2.2.2
2.2.2
ecstatic
npm
≥ 3.0.0
< 3.3.2
3.3.2
ecstatic
npm
≥ 4.0.0
< 4.1.2
4.1.2

References

Frequently Asked Questions

What is GHSA-9q64-mpxx-87fg?
GHSA-9q64-mpxx-87fg is a security vulnerability in Ecstatic involving Open Redirect in ecstatic under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Ecstatic versions are affected?
Affected versions include releases prior to 2.2.2, 3.3.2, 4.1.2 across affected packages: ecstatic.
What version fixes GHSA-9q64-mpxx-87fg?
Upgrading to 2.2.2, 3.3.2, 4.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ecstatic affected?
Yes, ecstatic is affected in releases prior to 2.2.2, 3.3.2, 4.1.2. Upgrade your dependency to 2.2.2, 3.3.2, 4.1.2 or later.
What CWE is associated with GHSA-9q64-mpxx-87fg?
GHSA-9q64-mpxx-87fg 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-9q64-mpxx-87fg?
Run the dependency tree command: 'npm ls ecstatic'. 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-9q64-mpxx-87fg",
  "modified" : "2020-12-15T16:51:18Z",
  "published" : "2020-04-01T16:35:08Z",
  "aliases" : [ ],
  "summary" : "Open Redirect in ecstatic",
  "details" : "Versions of `ecstatic` prior to 4.1.2, 3.3.2 or 2.2.2 are vulnerable to Open Redirect. The package fails to validate redirects, allowing attackers to craft requests that result in an `HTTP 301` redirect to any other domains.\n\n\n## Recommendation\n\nIf using `ecstatic` 4.x, upgrade to 4.1.2 or later.\nIf using `ecstatic` 3.x, upgrade to 3.3.2 or later.\nIf using `ecstatic` 2.x, upgrade to 2.2.2 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ecstatic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ecstatic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ecstatic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10775"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/830"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-04-01T15:37:18Z",
    "nvd_published_at" : null
  }
}