{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-7381","id":"CVE-2026-7381","title":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting","description":"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 ser","descriptionLong":"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.","published":"2026-04-29T22:13:35.351Z","updated":"2026-10-28T02:31:13.512691476Z","reserved":"2026-04-29T07:43:55.519Z","status":"Analyzed","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"}],"rating":"critical","products":["MIYAGAWA Plack::Middleware::XSendfile"],"affectedProducts":[{"vendor":"MIYAGAWA","product":"Plack::Middleware::XSendfile","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"1.0053","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-200","CWE-441","CWE-913"],"aliases":[],"references":[{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes","tags":["release-notes","Release Notes","advisory"]},{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/view/lib/Plack/Middleware/XSendfile.pm#DEPRECATION-NOTICE","tags":["technical-description","Product","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61780","tags":["related","US Government Resource","advisory"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7381.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7381","tags":["advisory"]},{"url":"https://github.com/plack/Plack","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00442,"epssPercentile":0.39196,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-7381","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7381","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-7381","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-7381","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}