GHSA-p72p-rjr2-r439: Terriajs server Server-Side Request Forgery Vulnerability

HIGH
CWE-918
Published
Advisory Summary

GHSA-p72p-rjr2-r439 is a HIGH server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Terriajs server libraries in the npm ecosystem. The issue involves server-side request forgery in terriajs-server. Remediation is available by upgrading affected packages to version 2.7.4.

GHSA-p72p-rjr2-r439 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-p72p-rjr2-r439
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Terriajs server
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-p72p-rjr2-r439

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

terriajs-server fixed: 2.7.4
npm install terriajs-server@2.7.4
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 terriajs-server

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-p72p-rjr2-r439, inspect your project dependencies using npm:

npm ls terriajs-server

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

Note: The npm ls terriajs-server 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Terriajs server, 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 `terriajs-server`prior to 2.7.4 are vulnerable to Server-Side Request Forgery (SSRF). If an attacker has access to a server whitelisted by the terriajs-server proxy or if the attacker is able to modify the DNS records of a domain whitelisted by the terriajs-server proxy, the attacker can use the terriajs-server proxy to access any HTTP-accessible resources that are accessible to the server, including private resources in the hosting environment. ## Recommendation Upgrade to version 2.7.4 or later.

GHSA-p72p-rjr2-r439 Affected Terriajs server Versions

1 component(s)
Fixed Versions:
2.7.4
Product / Package Ecosystem Affected Versions Fixed Version
terriajs-server
npm
< 2.7.4
2.7.4

References

Frequently Asked Questions

What is GHSA-p72p-rjr2-r439?
GHSA-p72p-rjr2-r439 is a security vulnerability in Terriajs server involving Server-Side Request Forgery in terriajs-server under CWE-918: Server-Side Request Forgery (SSRF).
Which Terriajs server versions are affected?
Affected versions include releases prior to 2.7.4 across affected packages: terriajs-server.
What version fixes GHSA-p72p-rjr2-r439?
Upgrading to 2.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is terriajs-server affected?
Yes, terriajs-server is affected in releases prior to 2.7.4. Upgrade your dependency to 2.7.4 or later.
What CWE is associated with GHSA-p72p-rjr2-r439?
GHSA-p72p-rjr2-r439 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for GHSA-p72p-rjr2-r439?
Run the dependency tree command: 'npm ls terriajs-server'. 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-p72p-rjr2-r439",
  "modified" : "2020-08-31T18:35:03Z",
  "published" : "2019-05-29T20:24:02Z",
  "aliases" : [ ],
  "summary" : "Server-Side Request Forgery in terriajs-server",
  "details" : "Versions of `terriajs-server`prior to 2.7.4 are vulnerable to Server-Side Request Forgery (SSRF). If an attacker has access to a server whitelisted by the terriajs-server proxy or if the attacker is able to modify the DNS records of a domain whitelisted by the terriajs-server proxy, the attacker can use the terriajs-server proxy to access any HTTP-accessible resources that are accessible to the server, including private resources in the hosting environment.\n\n\n## Recommendation\n\nUpgrade to version 2.7.4 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "terriajs-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TerriaJS/terriajs-server/commit/3cbc48475f50a53962f605491d0e60648a29bdf0"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/terria/security-vulnerability-in-terriajs-server-82c8bf4da0a5"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/768"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-29T20:23:25Z",
    "nvd_published_at" : null
  }
}