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.
Published: 2026-09-24
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized disclosure of source code and build metadata
Action: Immediate Patch
AI Analysis

Impact

The vulnerability exists because the Rsdoctor report HTTP server, started by the @rsdoctor/rspack-plugin, listens on all network interfaces and exposes a POST /api/data/key endpoint without authentication or restrictions. The endpoint returns the full source code of built JavaScript modules, build configuration, error details, and other sensitive metadata. This constitutes an information‑disclosure flaw (CWE‑200) that allows an attacker to retrieve confidential project information. The likely attack vector is any network‑adjacent or remote attacker who can reach the host, as no authentication is required.

Affected Systems

Affected systems are projects that use the Rsdoctor plugin prior to version 1.5.16 in environments where the plugin is enabled by default, such as local developer machines or non‑CI server installations. The plugin is distributed by the web‑infra‑dev vendor; any installation of the @rsdoctor/rspack-plugin before 1.5.16 is vulnerable.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the HTTP server binds to 0.0.0.0, an attacker with network access—whether local or over the internet—can exploit the unauthenticated endpoint, making the flaw potentially exploitable from anywhere that can reach the target host. No special configurations are required to launch the attack; the vulnerable behavior is enabled by default in non‑CI contexts.

Generated by OpenCVE AI on September 25, 2026 at 05:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade @rsdoctor/rspack-plugin to version 1.5.16 or later.
  • Disable the Rsdoctor HTTP API in non‑production builds, or configure it to bind only to localhost.
  • Apply firewall rules or network segmentation to block external access to the Rsdoctor server.

Generated by OpenCVE AI on September 25, 2026 at 05:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-jmg2-rcxh-w8q3 @rsdoctor/rspack-plugin has Unauthenticated HTTP API that Exposes Project Source Code and Build Metadata
History

Fri, 25 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Web-infra-dev
Web-infra-dev rsdoctor
Vendors & Products Web-infra-dev
Web-infra-dev rsdoctor

Thu, 24 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
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.
Title @rsdoctor/rspack-plugin has Unauthenticated HTTP API that Exposes Project Source Code and Build Metadata
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Web-infra-dev Rsdoctor
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T17:32:39.856Z

Reserved: 2026-07-10T20:06:05.616Z

Link: CVE-2026-61782

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T18:17:16.333

Modified: 2026-09-24T18:17:16.333

Link: CVE-2026-61782

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:16:38Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor