Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 98%

CVE-2026-7381: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor in MIYAGAWA Plack::Middleware::XSendfile

0
Critical
VulnerabilityCVE-2026-7381cvecve-2026-7381cwe-200cwe-441cwe-913
Published: Wed Apr 29 2026 (04/29/2026, 22:13:35 UTC)
Source: CVE Database V5
Vendor/Project: MIYAGAWA
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/07/2026, 02:19:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses