Skip to main content

Plack::Middleware::CSP EUVDEUVD-2026-121395

| CVE-2026-125729 MEDIUM
Incorrect Provision of Specified Functionality (CWE-684)
2026-11-10 CPANSec GHSA-28cm-92qv-48w3
6.1
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app relying on vulnerable CSP middleware
  2. Exploit
    Abuse pre-existing XSS in wrapped application
  3. Execution
    Browser ignores malformed CSP header
  4. Impact
    Injected script executes in victim browser

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect provision of specified functionality
Exploitation Conditions

Exploitation is only meaningful when ALL of the following hold: (1) the wrapped Plack application actually contains a cross-site scripting vulnerability, since this flaw does not create XSS but merely removes the CSP mitigation; (2) the deployment depends on Plack::Middleware::CSP (version before 0.03) to supply Content-Security-Policy as a protective control; and (3) a victim interacts with the malicious content (UI:R). Limiting factors: if the application has no XSS, or does not rely on CSP for defense, there is no exploitable impact; the flaw provides no direct confidentiality/integrity access on its own and requires victim browser interaction. The condition is the module emitting the policy under the header name 'content-security-protocol' instead of 'Content-Security-Policy'.

Impact

This is a medium-severity defense-in-depth failure, not a directly exploitable flaw. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N = 6.1) reflects the browser-side impact of an XSS that this middleware was supposed to mitigate, not a vulnerability the attacker triggers directly: the middleware emits the policy under the non-standard header 'content-security-protocol', so browsers silently ignore it and any pre-existing cross-site scripting bug in the wrapped application runs unimpeded. The decision signals are modest and mutually consistent: EPSS is 0.24% (15th percentile), there is no CISA KEV listing, and no public exploit code is referenced - only advisories and a bug-tracker issue. The vuln.today priority is 'this_month', i.e. routine patching rather than emergency. The key caveat is that the CVSS score is conditional: it assumes the wrapped application already contains an XSS flaw and that the operator is relying on this middleware's CSP as a control. With no such XSS, or no reliance on CSP, real-world impact is zero. The S:C (scope change) and C:L/I:L reflect script execution in the victim's browser context, which is standard for CSP-bypass/XSS, but the mitigation-only nature means raw CVSS overstates urgency for most deployments.

Exploit ScenarioDerived

An operator deploys a Plack-based Perl web application behind Plack::Middleware::CSP (before 0.03), believing the Content-Security-Policy header will block injected scripts. Because the policy is sent as 'content-security-protocol', the browser never enforces it, so an attacker who already has (or finds) a cross-site scripting vector in the wrapped application can deliver a crafted link or input that executes script in a victim's browser when they interact with the page (UI:R). No public exploit code is identified at time of analysis; exploitation depends on a separate XSS existing in the application.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Plack::Middleware::CSP before 0.03 disables the intended Content Security Policy protection by sending it under the misspelled header name 'content-security-protocol', which browsers ignore. This is a medium-severity defense-in-depth failure, not a directly exploitable flaw: it does not create cross-site scripting but removes a mitigation, so impact only materializes when the wrapped Plack application already contains an XSS flaw and a victim interacts with malicious content. EPSS is 0.24% (15th percentile), no public exploit identified at time of analysis, and the vendor released version 0.03 with the corrected header name.

RemediationAI

Upgrade to Plack::Middleware::CSP 0.03, the vendor-released patch that sends the policy under the correct 'Content-Security-Policy' header name, as documented in the changelog at https://metacpan.org/release/ASHLEY/Plack-Middleware-CSP-0.03/source/CHANGES. After upgrading, verify the response header with browser developer tools or curl and confirm there is no duplicate or conflicting CSP header. If upgrading is not immediately possible, disable this middleware and set the correct Content-Security-Policy header at the reverse proxy or application layer, and ensure the misspelled 'content-security-protocol' header is not also present; this compensating control requires testing because duplicate CSP headers can cause browsers to enforce an unintended policy, and it shifts policy maintenance outside the module. Review the upstream issue at https://github.com/pangyre/Plack-Middleware-CSP/issues/1 and the oss-security advisory at https://seclists.org/oss-sec/2026/q4/634 for additional details.

Affected ProductsAI

Plack::Middleware::CSP versions before 0.03 for Perl are affected, including any Plack application that relies on this middleware to supply Content-Security-Policy as a protective control; no CPE strings were provided in the input data. The fixed release is version 0.03, documented in the module changelog at https://metacpan.org/release/ASHLEY/Plack-Middleware-CSP-0.03/source/CHANGES, with the upstream issue at https://github.com/pangyre/Plack-Middleware-CSP/issues/1 and the oss-security advisory at https://seclists.org/oss-sec/2026/q4/634.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Plack::Middleware::CSP is a Perl Plack middleware intended to attach a Content-Security-Policy response header to applications it wraps. The root cause matches CWE-684 (Incorrect Provision of Specified Functionality): the middleware's call method emits the policy under 'content-security-protocol' rather than the standard 'Content-Security-Policy', so user agents do not recognize or enforce it. The assessed CVSS vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, reflecting that exploitation depends on an independent XSS flaw in the wrapped application and on victim interaction; the defect itself provides no direct confidentiality or integrity access. No CPE identifiers were supplied; affected deployments are those using the module before version 0.03.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.7 MEDIUM

Impact only materializes if a separate XSS exists in the wrapped app, a condition outside the attacker's control, so AC:H; scope changes to the victim browser (S:C) with low C/I and no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 16, 2026 - 17:22 NVD
6.1 (MEDIUM)
CVE Published
Nov 10, 2026 - 17:35 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Plack::Middleware::CSP versions before 0.03 for Perl send the Content Security Policy under the wrong header name, so browsers never enforce it.

The call method sets the policy in a response header named "content-security-protocol" instead of "Content-Security-Policy". Browsers ignore that header.

Any cross-site scripting flaw in the wrapped application can run scripts the policy was meant to block.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Rare
obscure single-author Perl CPAN middleware module, tiny deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy