CVE-2026-61782 @rsdoctor/rspack-plugin has Unauthenticated HTTP API that Exposes Project Source Code and Build Metadata

High 7.5 Published Updated

Remote attackers can access unauthenticated HTTP APIs to steal source code and build metadata from Rsdoctor instances running on all network interfaces.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-61782?

CVE-2026-61782 is a high-severity vulnerability in web-infra-dev rsdoctor, published on 24 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-200

Which versions are affected by CVE-2026-61782?

2 open source packages ship an affected version, including @rsdoctor/rspack-plugin.

PackageAffectedFixed in
@rsdoctor/rspack-plugin npmAll versions1.5.16
@rsdoctor/rspack-plugin npmAll versions1.5.16

How do I fix CVE-2026-61782?

Upgrade @rsdoctor/rspack-plugin to 1.5.16 or later.

Is CVE-2026-61782 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61782 exists.

Sources

Also known as GHSA-jmg2-rcxh-w8q3.

Is CVE-2026-61782 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free