CVE-2026-93421

Mesop: Unauthenticated ANSI Escape Sequence Injection in CSP Reporting Endpoint

Published Sep 23, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Mesop is a Python-based UI framework that allows users to build web applications. Prior to 1.3.4, the unauthenticated /__csp__ endpoint passes attacker-controlled document-uri, blocked-uri, and violated-directive values to the csp_report handler in mesop/server/static_file_serving.py, which prints them to standard output without neutralizing terminal control sequences. When an operator views the resulting logs in an ANSI-capable terminal, injected ANSI or VT100 sequences can clear or reposition the display, hide text, or present forged messages, reducing the integrity of monitoring and incident-response output. This issue is fixed in version 1.3.4.

Analysis

AI-generated

Technical impact

Mesop, a Python UI framework, allowed unauthenticated access to the /__csp__ endpoint in versions before 1.3.4. The endpoint forwarded attacker‑controlled document‑uri, blocked‑uri, and violated‑directive values to the csp_report handler without neutralizing terminal control characters. This behavior exploits CWE‑117 and CWE‑150, allowing the printed values to contain ANSI or VT‑100 escape sequences. When these values are written to standard output, an operator examining the logs in an ANSI‑capable terminal could inject escape sequences that clear, reposition, or hide portions of the display or insert forged messages, thereby compromising the integrity of monitoring and incident‑response information.

Affected Systems

The affected product is Mesop by mesop-dev. All releases prior to 1.3.4 are vulnerable; version 1.3.4 and later contain the fix.

Risk and Exploitability

The CVSS score is 5.3, indicating a medium impact. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. Attackers can exploit the unauthenticated endpoint to inject ANSI or VT‑100 sequences that manipulate log presentation for anyone viewing the logs on a terminal. This does not grant code execution but can mislead operators, obscure indicators of compromise, and undermine forensic accuracy.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Mesop v1.3.4 or later, which sanitizes csp_report output.
  • Restrict or disable access to the /__csp__ endpoint for unauthenticated users.
  • Configure log viewing tools or environments to suppress or strip ANSI escape sequences before display.

Generated by OpenCVE AI on September 23, 2026 at 21:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g7f6-rxc4-qhph Mesop: Unauthenticated ANSI Escape Sequence Injection in CSP Reporting Endpoint
History
Type Values Removed Values Added
First Time appeared Mesop-dev
Mesop-dev mesop
Vendors & Products Mesop-dev
Mesop-dev mesop
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Mesop is a Python-based UI framework that allows users to build web applications. Prior to 1.3.4, the unauthenticated /__csp__ endpoint passes attacker-controlled document-uri, blocked-uri, and violated-directive values to the csp_report handler in mesop/server/static_file_serving.py, which prints them to standard output without neutralizing terminal control sequences. When an operator views the resulting logs in an ANSI-capable terminal, injected ANSI or VT100 sequences can clear or reposition the display, hide text, or present forged messages, reducing the integrity of monitoring and incident-response output. This issue is fixed in version 1.3.4.
Title Mesop: Unauthenticated ANSI Escape Sequence Injection in CSP Reporting Endpoint
Weaknesses CWE-117
CWE-150
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N'}

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs

  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 23, 2026, 7:41 PM
Reserved
Sep 17, 2026, 8:57 PM
Status
Deferred
Published
Sep 23, 2026, 7:19 PM
Modified
Sep 30, 2026, 5:32 PM