CVE-2026-61782
Received Received - Intake

Rsdoctor Build Analyzer Unauthenticated Source Code Exposure

Vulnerability report for CVE-2026-61782, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-24

Last updated on: 2026-09-24

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-24
Last Modified
2026-09-24
Generated
2026-09-24
AI Q&A
2026-09-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
rsdoctor rsdoctor to 1.5.16 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Rsdoctor, a build analyzer for Rspack projects. The issue is in versions before 1.5.16 where the default HTTP server binds to all network interfaces (0.0.0.0) and exposes an unauthenticated POST endpoint (/api/data/key) with wildcard CORS. Attackers can send a single request to retrieve sensitive data like compiled JavaScript source code, build configurations, and error details.

Detection Guidance

Check if the Rsdoctor report server is running on port 8080 or another port by using commands like 'netstat -tulnp | grep rsdoctor' or 'ss -tulnp | grep rsdoctor'. Send a POST request to /api/data/key with key 'moduleCodeMap' or 'configs' to test exposure. Example: 'curl -X POST http://localhost:8080/api/data/key -H "Content-Type: application/json" -d '{"key":"moduleCodeMap"}'.

Verify server binding to 0.0.0.0 by checking Rsdoctor configuration files or environment variables for server host settings. Inspect CORS headers in responses to confirm wildcard origins.

Impact Analysis

If you use Rsdoctor versions <= 1.5.15, an attacker on the same network or remotely could access your project's full source code, including embedded secrets, build settings, and error logs. This could lead to intellectual property theft, credential exposure, or further attacks on your systems.

Compliance Impact

This vulnerability could violate GDPR by exposing personal data in source code or HIPAA by leaking protected health information. Unauthorized access to source code may also breach confidentiality requirements in these regulations, leading to legal and compliance risks.

Mitigation Strategies

Upgrade to Rsdoctor version 1.5.16 or later to patch the vulnerability. Disable the report server if not needed by setting the appropriate environment variable or configuration flag.

Restrict network access to the server port using firewalls or network policies. Avoid permissive CORS configurations and ensure the server binds only to localhost (127.0.0.1).

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-61782. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart