Vulnerability · Published Apr 29, 2026 · Assigned by CPANSec
CVE-2026-7381Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting
Critical 9.1
In plain English
A critical-severity information exposure in Plack::Middleware::XSendfile from MIYAGAWA. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities).
Official description
Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting. Plack::Middleware::XSendfile allows the variation setting (sendfile type) to be set by the client via the X-Sendfile-Type header, if it is not considered in the middleware constructor or the Plack environment. A malicious client can set the X-Sendfile-Type header to "X-Accel-Redirect" to services running behind nginx reverse proxies, and then set the X-Accel-Mapping to map the path to an arbitrary file on the server. Since 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack. This is similar to CVE-2025-61780 for Rack::Sendfile, although Plack::Middleware::XSendfile has some mitigations that disallow regular expressions to be used in the mapping, and only apply the mapping for the "X-Accel-Redirect" type.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libplack-perl | no fix listed | DEBIAN-CVE-2026-7381 |
| Debian:13 | libplack-perl | no fix listed | DEBIAN-CVE-2026-7381 |
| Debian:14 | libplack-perl | no fix listed | DEBIAN-CVE-2026-7381 |
| Ubuntu:22.04:LTS | libplack-perl | no fix listed | UBUNTU-CVE-2026-7381 |
| Ubuntu:24.04:LTS | libplack-perl | no fix listed | UBUNTU-CVE-2026-7381 |
| Ubuntu:25.10 | libplack-perl | no fix listed | UBUNTU-CVE-2026-7381 |
| Ubuntu:26.04:LTS | libplack-perl | no fix listed | UBUNTU-CVE-2026-7381 |
| Ubuntu:26.10 | libplack-perl | no fix listed | UBUNTU-CVE-2026-7381 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MIYAGAWA | Plack::Middleware::XSendfile | 0 – through 1.0053 |
Weakness: CWE-200, CWE-441, CWE-913 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N