CVE-2026-7381: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor in MIYAGAWA Plack::Middleware::XSendfile
CVE-2026-7381 is a critical vulnerability in Plack::Middleware::XSendfile for Perl that allows client-controlled path rewriting via the X-Sendfile-Type header. A malicious client can exploit this by setting the header to "X-Accel-Redirect" and manipulating the X-Accel-Mapping to access arbitrary files on the server behind nginx reverse proxies. This vulnerability exposes sensitive information to unauthorized actors. Plack::Middleware::XSendfile has been deprecated since version 1.0053 and will be removed in future releases. There is no official patch or remediation currently available.
AI Analysis
Technical Summary
Plack::Middleware::XSendfile versions through 1.0053 allow clients to control the sendfile type via the X-Sendfile-Type header if not properly restricted in the middleware constructor or environment. Specifically, attackers can set this header to "X-Accel-Redirect" and use the X-Accel-Mapping header to rewrite paths, enabling access to arbitrary files on servers behind nginx reverse proxies. Although some mitigations exist (disallowing regex in mappings and limiting application to "X-Accel-Redirect" type), the vulnerability still permits exposure of sensitive information. The middleware is deprecated and slated for removal in future Plack releases. This vulnerability is similar to CVE-2025-61780 affecting Rack::Sendfile.
Potential Impact
Successful exploitation allows an attacker to read arbitrary files on the server by manipulating path mappings, leading to exposure of sensitive information. The vulnerability does not affect integrity or availability but has a high confidentiality impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Since Plack::Middleware::XSendfile is deprecated as of version 1.0053 and planned for removal, users are advised to migrate away from this middleware to alternative, secure methods for handling sendfile functionality. Until then, restrict or validate client-controlled headers such as X-Sendfile-Type and X-Accel-Mapping to prevent unauthorized path rewriting. Monitor vendor advisories for updates or official remediation.
CVE-2026-7381: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor in MIYAGAWA Plack::Middleware::XSendfile
Description
CVE-2026-7381 is a critical vulnerability in Plack::Middleware::XSendfile for Perl that allows client-controlled path rewriting via the X-Sendfile-Type header. A malicious client can exploit this by setting the header to "X-Accel-Redirect" and manipulating the X-Accel-Mapping to access arbitrary files on the server behind nginx reverse proxies. This vulnerability exposes sensitive information to unauthorized actors. Plack::Middleware::XSendfile has been deprecated since version 1.0053 and will be removed in future releases. There is no official patch or remediation currently available.
CVSS v3.1
Score 9.1critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Plack::Middleware::XSendfile versions through 1.0053 allow clients to control the sendfile type via the X-Sendfile-Type header if not properly restricted in the middleware constructor or environment. Specifically, attackers can set this header to "X-Accel-Redirect" and use the X-Accel-Mapping header to rewrite paths, enabling access to arbitrary files on servers behind nginx reverse proxies. Although some mitigations exist (disallowing regex in mappings and limiting application to "X-Accel-Redirect" type), the vulnerability still permits exposure of sensitive information. The middleware is deprecated and slated for removal in future Plack releases. This vulnerability is similar to CVE-2025-61780 affecting Rack::Sendfile.
Potential Impact
Successful exploitation allows an attacker to read arbitrary files on the server by manipulating path mappings, leading to exposure of sensitive information. The vulnerability does not affect integrity or availability but has a high confidentiality impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Since Plack::Middleware::XSendfile is deprecated as of version 1.0053 and planned for removal, users are advised to migrate away from this middleware to alternative, secure methods for handling sendfile functionality. Until then, restrict or validate client-controlled headers such as X-Sendfile-Type and X-Accel-Mapping to prevent unauthorized path rewriting. Monitor vendor advisories for updates or official remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-04-29T07:43:55.519Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f287e7cbff5d8610509db2
Added to database: 4/29/2026, 10:36:23 PM
Last enriched: 5/7/2026, 2:19:06 AM
Last updated: 6/13/2026, 8:31:13 PM
Views: 101
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.