Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-61782 Overview
CVE-2026-61782 is an information disclosure vulnerability in Rsdoctor, a build analyzer for projects built with Rspack. The @rsdoctor/rspack-plugin starts a default HTTP server that binds to all network interfaces (0.0.0.0) and exposes the POST /api/data/key endpoint without authentication. The endpoint also responds with a wildcard CORS header (Access-Control-Allow-Origin: *). Any network-adjacent or remote attacker can retrieve the full source code of compiled JavaScript modules, serialized build configuration, and build metadata with a single request. The report server runs by default in non-CI environments, so victim developers need no special configuration for exposure. Version 1.5.16 patches the issue.
Critical Impact
Unauthenticated remote attackers can exfiltrate complete JavaScript source code (moduleCodeMap), build configs, and error details from any developer running an affected Rsdoctor version.
Affected Products
- Rsdoctor (@rsdoctor/rspack-plugin) prior to version 1.5.16
- Projects using Rspack with Rsdoctor enabled in non-CI environments
- Developer workstations exposing the Rsdoctor report server on local networks
Discovery Timeline
- 2026-09-24 - CVE-2026-61782 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-61782
Vulnerability Analysis
The vulnerability is categorized under [CWE-200] (Exposure of Sensitive Information to an Unauthorized Actor). Rsdoctor's rspack plugin automatically launches an HTTP server to host its build report UI during development. The server binds to 0.0.0.0 rather than 127.0.0.1, making it reachable from any host on the same network segment. The POST /api/data/key endpoint returns rich build artifacts including moduleCodeMap, which contains the compiled JavaScript source for every module in the project.
The server enforces no authentication, no origin validation, and no token requirement. Combined with the wildcard CORS policy, the endpoint is also reachable through cross-origin requests from any attacker-controlled web page a developer visits.
Root Cause
The root cause is insecure default configuration. The report server listens on all interfaces by default, exposes a sensitive data endpoint without authentication, and sets Access-Control-Allow-Origin: *. These defaults assume a trusted local-only environment that does not hold on shared Wi-Fi, corporate LANs, or developer machines browsing untrusted sites during active builds.
Attack Vector
An attacker on the same network as a developer running an Rsdoctor-enabled build can issue a single HTTP POST to /api/data/key on the developer's host and receive the complete module source map and build configuration. Remote exploitation is also possible via drive-by browser attacks: a malicious website can issue a cross-origin POST to the local server and read the response because of the wildcard CORS header. No user interaction beyond visiting a page is required.
The vulnerability mechanism is documented in the GitHub Security Advisory GHSA-jmg2-rcxh-w8q3.
Detection Methods for CVE-2026-61782
Indicators of Compromise
- Inbound HTTP POST requests to /api/data/key on developer workstations from non-localhost source addresses.
- Rsdoctor report server listening on 0.0.0.0 rather than 127.0.0.1 on developer hosts.
- Outbound responses containing moduleCodeMap or configs JSON payloads sent to unexpected clients.
Detection Strategies
- Inventory developer workstations for @rsdoctor/rspack-plugin versions below 1.5.16 through package manifest scanning (package.json, pnpm-lock.yaml, yarn.lock).
- Monitor host firewall and endpoint telemetry for processes binding to 0.0.0.0 on ephemeral ports associated with Node.js build tooling.
- Review web proxy logs for cross-origin requests from untrusted domains to internal RFC1918 addresses on developer subnets.
Monitoring Recommendations
- Alert on unexpected network listeners on developer endpoints via EDR process and network telemetry.
- Capture and retain build-tool network activity in a centralized data lake for retrospective hunting if exploitation is suspected.
- Correlate browser activity with concurrent inbound connections to Node.js processes on the same host.
How to Mitigate CVE-2026-61782
Immediate Actions Required
- Upgrade @rsdoctor/rspack-plugin to version 1.5.16 or later across all developer workstations and CI pipelines.
- Audit development networks for exposed Rsdoctor instances and terminate any running vulnerable servers.
- Restrict developer workstation inbound traffic on build-tool ports to loopback only using host firewalls.
Patch Information
Version 1.5.16 of Rsdoctor addresses the vulnerability. Review the GitHub Security Advisory GHSA-jmg2-rcxh-w8q3 for upgrade instructions and release notes.
Workarounds
- Disable the Rsdoctor report server entirely during local development if an immediate upgrade is not possible.
- Enforce loopback binding (127.0.0.1) via network ACLs or host firewall rules to block remote reachability.
- Require developers to run builds inside isolated environments such as containers or VMs with no inbound network exposure.
# Example: block external access to common Node.js dev-server ports on Linux
sudo iptables -A INPUT -p tcp --dport 3000:9999 ! -s 127.0.0.1 -j DROP
# Upgrade the vulnerable package
npm install @rsdoctor/rspack-plugin@^1.5.16
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

