{"id":"CVE-2026-7381","published":"2026-04-29T22:13:35Z","modified":"2026-04-30T13:18:45Z","title":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting","vendor":"MIYAGAWA","product":"Plack::Middleware::XSendfile","tier":"tail","description":{"text":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting.\n\nPlack::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.\n\nA 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.\n\nSince 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack.\n\nThis 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00442,"percentile":0.39329,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-441","name":"Unintended Proxy or Intermediary"},{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"references":[{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/view/lib/Plack/Middleware/XSendfile.pm#DEPRECATION-NOTICE","tags":["technical-description"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61780","tags":["related"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":7.87},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"miyagawa","affectedVersions":[{"vendor":"MIYAGAWA","product":"Plack::Middleware::XSendfile","versions":["<= 1.0053"]}],"solutions":{"items":["Users are encouraged to set the appropriate header directly in their applications, or write their own middleware layer that does not allow configuration to be passed via HTTP request headers."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Users can configure the X-Sendfile-Type in the middleware constructor, and the reverse proxy to unset the X-Sendfile-Type header and (on nginx) the X-Accel-Mapping request header."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-30T13:18:16.234435Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-26296","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2025-61780","to":"CVE-2026-7381","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"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.","from":"CVE.org","in":"CVE-2026-7381"}]}]}}