@rsdoctor/rspack-plugin has Unauthenticated HTTP API that Exposes Project Source Code and Build Metadata
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
Rsdoctor is a build analyzer tailored for projects built with Rspack. Prior to version 1.5.16, the default Rsdoctor report HTTP server started by `@rsdoctor/rspack-plugin` binds to all network interfaces (`0.0.0.0`) and serves a `POST /api/data/key` endpoint with no authentication and wildcard CORS (`Access-Control-Allow-Origin: *`). Any network-adjacent or remote attacker can send a single unauthenticated request to retrieve the full source code of all compiled JavaScript modules (`moduleCodeMap`), serialized build configuration (`configs`), error details, and other sensitive build metadata. This server is enabled by default in non-CI environments, requiring no special configuration from the victim developer. Version 1.5.16 patches the issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| web-infra-dev | rsdoctor | before 1.5.16 | 1.5.16 | Patch available | CNA |
| — | @rsdoctor/rspack-plugin (npm) | before 1.5.16 | 1.5.16 | Patch available | GHSA-jmg2-rcxh-w8q3 |
- rsdoctor Vendorweb-infra-dev Affected before 1.5.16 Fixed in 1.5.16 Patch available CNA
- @rsdoctor/rspack-plugin (npm) Vendor— Affected before 1.5.16 Fixed in 1.5.16 Patch available GHSA-jmg2-rcxh-w8q3
Remediation
- Fix · CNA rsdoctor (web-infra-dev) Fixed in 1.5.16
- Fix · GHSA-jmg2-rcxh-w8q3 @rsdoctor/rspack-plugin (npm) Fixed in 1.5.16 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61782
- 2026-10-03 Alias added: GHSA-jmg2-rcxh-w8q3
References
Other 6
- https://github.com/web-infra-dev/rsdoctor/security/advisories/GHSA-jmg2-rcxh-w8q3
- https://github.com/web-infra-dev/rsdoctor/pull/1744
- https://github.com/web-infra-dev/rsdoctor/pull/1758
- https://github.com/web-infra-dev/rsdoctor/commit/602eb306a49b6d19c4c1ea9d8ee0f8caab9e208f
- https://github.com/web-infra-dev/rsdoctor/commit/e9aaef21f85becfe43a46f716509f41ea5edeb40
- https://github.com/web-infra-dev/rsdoctor
More web-infra-dev vulnerabilities
- TI-2026-42625 Midscene Bridge Server - Session Hijack via Unauthenticated WebSocket CVSS 4.0HIGH 7.6
- TI-2026-08888 Rsbuild < 2.0.9 Command Injection via openBrowser() URL Handling CVSS 4.0HIGH 7.1
Sources
- CVE-2026-61782 · CVE Program
- CVE-2026-61782 · NVD
- FIRST EPSS
- GHSA-jmg2-rcxh-w8q3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences