CVE-2026-125729

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

Published Nov 10, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Plack::Middleware::CSP versions prior to 0.03 emit a policy header called "content-security-protocol" instead of the required "Content‑Security‑Policy". Browsers ignore this incorrect header, so any CSP rules defined by the application are never enforced. If the wrapped Perl application contains a cross‑site scripting flaw, malicious scripts can execute unchecked, allowing attackers to hijack sessions, deface pages or exfiltrate data.

Affected Systems

The affected component is the Perl module Plack‑Middleware‑CSP (Plack). Versions older than 0.03 are vulnerable; the fixed version is 0.03 or newer.

Risk and Exploitability

The flaw is a misconfiguration of a security header rather than a code‑execution vulnerability. The CVSS score is 6.1, indicating a medium severity, while the EPSS score is below 1 % and the vulnerability is not listed in CISA KEV, indicating a low likelihood of public exploitation. However, because the flaw only nullifies a protective layer, it only becomes critical when the underlying application already suffers from XSS. The primary attack vector is a web application using the vulnerable middleware that accepts user input susceptible to script injection. Exploitation requires that the host already has an XSS flaw; the middleware alone does not provide new capabilities.

Remediation

Vendor Solution

Upgrade to Plack-Middleware-CSP 0.03 or later.


OpenCVE Recommended Actions

  • Upgrade the Plack-Middleware-CSP package to version 0.03 or newer so the correct "Content‑Security‑Policy" header is sent
  • Verify that the application no longer emits the deprecated "content-security-protocol" header and that the desired CSP directives are present in the response
  • As a temporary measure, configure the application to send the CSP header directly through its own response handling code or via an alternate middleware that sets "Content‑Security‑Policy” correctly

Generated by OpenCVE AI on November 16, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Description 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.
Title Plack::Middleware::CSP versions before 0.03 for Perl send the Content Security Policy under the wrong header name, so browsers never enforce it
Weaknesses CWE-684
References

Subscriptions

No data.

Weaknesses
  • CWE-684

    Incorrect Provision of Specified Functionality

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 16, 2026, 5:09 PM
Reserved
Nov 10, 2026, 11:17 AM
Status
Deferred
Published
Nov 10, 2026, 6:17 PM
Modified
Nov 16, 2026, 5:17 PM