# CVE-2026-7381: Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-02)
- Published: 2026-04-29T22:13:35.351Z
- Modified: 2026-10-26T20:10:00.160Z
- Weaknesses: CWE-200, CWE-441, CWE-913
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Plack: up to 1.0053
- miyagawa plack::middleware::xsendfile: up to 1.0053

## References

- <https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes> (release-notes)
- <https://metacpan.org/release/MIYAGAWA/Plack-1.0053/view/lib/Plack/Middleware/XSendfile.pm#DEPRECATION-NOTICE> (product, technical-description)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61780> (related, us-government-resource)

## Sources

- CVE List: [CVE-2026-7381](https://www.cve.org/CVERecord?id=CVE-2026-7381), CVE Terms of Use, modified 2026-04-30
- NVD: [CVE-2026-7381](https://nvd.nist.gov/vuln/detail/CVE-2026-7381), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-7381 · Whole record: https://cve.day/CVE-2026-7381.json · Rebuilt by cve.day 2026-11-25T22:59:20.256Z
