{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-7381 in the wild and no public exploit code.","fix":"Product is end of life, replace it.","what":"CVE-2026-7381 is a critical path traversal vulnerability in MIYAGAWA Plack::Middleware::XSendfile, published on 29 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-7381 and fix it if it is affected.\n\nWhat it is: CVE-2026-7381 is a critical path traversal vulnerability in MIYAGAWA Plack::Middleware::XSendfile, published on 29 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-7381 in the wild and no public exploit code.\n\nAffected product: MIYAGAWA Plack::Middleware::XSendfile. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-7381/ (Markdown: https://insights.sbomify.com/CVE-2026-7381/index.md)","id":"CVE-2026-7381","markdown":"https://insights.sbomify.com/CVE-2026-7381/index.md","name":"CVE-2026-7381","record":{"aliases":["DEBIAN-CVE-2026-7381","GHSA-j2f5-52cv-9wrh","MGASA-2026-0350","UBUNTU-CVE-2026-7381"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl Plack middleware","requires_auth":"none","summary":"A malicious client can manipulate headers to read arbitrary files on the server via path rewriting in the deprecated Plack::Middleware::XSendfile library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"plack\\","vendor":"miyagawa"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"},{"id":"CWE-441","name":"Unintended Proxy or Intermediary"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting","id":"CVE-2026-7381","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Information Disclosure in MeWare Software's PDKS","id":"CVE-2026-7382"},"packages":[],"prev":{"headline":"HTML Injection in Armiya Technologies' Access Control System","id":"CVE-2026-7380"},"products":["Plack::Middleware::XSendfile"],"published":"2026-04-29","related":[{"cvss_score":9.8,"headline":"Plack::Middleware::Session::Cookie versions through 0.21 for Perl allows remote code execution","id":"CVE-2014-125112","kev_date_added":null,"published":"2026-03-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-30","vendors":["MIYAGAWA"]},"summary":"A malicious client can manipulate headers to read arbitrary files on the server via path rewriting in the deprecated Plack::Middleware::XSendfile library.","url":"https://insights.sbomify.com/CVE-2026-7381/"}