Vulnerabilities in pkg:npm/terriajs-server
PACKAGECVE-2026-27818 is a HIGH terriajs-server has a domain validation vulnerability (CWE-20: Improper Input Validation) affecting Terriajs server libraries in the npm ecosystem. The issue involves terriajs-server has a domain validation bypass vulnerability in its proxy allowlist. Remediation is available by upgrading affected packages to version 4.0.3.
pkg:npm/terriajs-server
Vulnerability advisories affecting package pkg:npm/terriajs-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w789-49fc-v8hr | CVE-2026-27818 | HIGH | TerriaJS-Server has a domain validation bypass vulnerability in its proxy allowlist |
| GHSA-p72p-rjr2-r439 | - | HIGH | Server-Side Request Forgery in terriajs-server |
CVE-2026-27818 at a Glance
How to Fix CVE-2026-27818
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.
npm install terriajs-server@4.0.3
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 CVE-2026-27818, 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 4.0.3), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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
CVE-2026-27818 Affected Terriajs server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
terriajs-server
|
npm |
< 4.0.3
|
4.0.3
|
References
Frequently Asked Questions
What is CVE-2026-27818?
Which Terriajs server versions are affected?
What version fixes CVE-2026-27818?
Is terriajs-server affected?
What CWE is associated with CVE-2026-27818?
How can I check npm dependencies for CVE-2026-27818?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w789-49fc-v8hr",
"modified" : "2026-02-26T15:22:11Z",
"published" : "2026-02-26T15:22:11Z",
"aliases" : [ "CVE-2026-27818" ],
"summary" : "TerriaJS-Server has a domain validation bypass vulnerability in its proxy allowlist",
"details" : "### Impact\nA validation bug allows an attacker to proxy domains not explicitly allowed in the `proxyableDomains` configuration.\n\nThe validation only checks if a hostname _ended_ with an allowed domain. This meant:\n\nIf `example.com` is allowed in `proxyableDomains`:\n\n- ✅ example.com is allowed (correct)\n- ✅ api.example.com is allowed (correct)\n- ⚠️ maliciousexample.com is allowed (incorrect)\n\nAn attacker could register maliciousexample.com and proxy content through `terriajs-server`, bypassing proxy restrictions.\n\n### Patches\nAll versions up to 4.0.2 are affected. Upgrade to 4.0.3 to address the vulnerability.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "terriajs-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/TerriaJS/terriajs-server/security/advisories/GHSA-w789-49fc-v8hr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27818"
}, {
"type" : "WEB",
"url" : "https://github.com/TerriaJS/terriajs-server/commit/3aaa5d9717162b245ae4569232bbe7d8673c913f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/TerriaJS/terriajs-server"
}, {
"type" : "WEB",
"url" : "https://github.com/TerriaJS/terriajs-server/releases/tag/4.0.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-26T15:22:11Z",
"nvd_published_at" : "2026-02-26T00:16:26Z"
}
}