Skip to main content
Vulnerability Database/CVE-2026-114404

CVE-2026-114404: PHPOffice PHPPresentation XSS Vulnerability

CVE-2026-114404 is a cross-site scripting flaw in PHPOffice PHPPresentation 1.2.0 that enables attackers to inject malicious scripts through crafted PPTX files. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114404 Overview

CVE-2026-114404 is a cross-site scripting (XSS) vulnerability in PHPOffice PHPPresentation version 1.2.0. The flaw resides in the HTML writer component, which emits presentation content without proper output encoding. Attackers who supply presentation content can inject script that executes in the browsers of users viewing the generated HTML output. Malicious payloads can be embedded in text runs, hyperlink relationship targets, or shape descr attributes within a crafted .pptx file. The weakness is classified as [CWE-79], Improper Neutralization of Input During Web Page Generation.

Critical Impact

An attacker who can supply a presentation file to a workflow that renders it to HTML can execute arbitrary JavaScript in the viewer's browser, enabling session theft, user impersonation, and content manipulation.

Affected Products

  • PHPOffice PHPPresentation 1.2.0
  • Applications that invoke the PhpPresentation\Writer\HTML class to render PPTX files
  • Server-side rendering pipelines that accept user-supplied presentation uploads

Discovery Timeline

  • 2026-10-21 - CVE-2026-114404 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114404

Vulnerability Analysis

The vulnerability exists in the HTML writer at src/PhpPresentation/Writer/HTML.php (lines 307–330 in release 1.2.0). The writer concatenates presentation content into HTML markup without applying context-appropriate output encoding. When a crafted .pptx file is processed, attacker-controlled strings embedded in text runs, hyperlink relationship targets, or shape descr (description) attributes flow directly into the generated HTML document.

Because the output is served as text/html, injected <script> tags and event-handler attributes execute in the browser session of any user viewing the rendered presentation. This produces a stored XSS condition in applications that persist generated HTML and a reflected XSS condition in on-the-fly rendering pipelines. Exploitation requires user interaction, specifically opening or rendering the malicious presentation.

Root Cause

The root cause is missing HTML entity encoding on untrusted data paths within the HTML writer. The library trusts that PPTX structural fields such as text runs, hyperlink Target values in relationship files, and shape accessibility descr attributes contain safe content. No call to htmlspecialchars or an equivalent context-aware encoder is applied before string concatenation into the HTML output.

Attack Vector

An attacker crafts a .pptx archive and modifies the internal XML parts. Payloads can be placed inside <a:t> text run elements, inside Target attributes of hyperlink relationships in _rels/*.xml.rels, or inside shape descr attributes on <p:nvSpPr> properties. When a server or user converts the file to HTML using the vulnerable writer, the payload is embedded verbatim and executes on view.

See the VulnCheck PHPPresentation XSS Advisory and the HackMD PHPPresentation Vulnerability Report for technical details. The vulnerable code path is documented in the GitHub HTML Writer Code Review.

Detection Methods for CVE-2026-114404

Indicators of Compromise

  • Generated HTML output from PHPPresentation that contains inline <script> tags, javascript: URI schemes, or event-handler attributes such as onerror= and onload=.
  • Uploaded .pptx files whose internal XML parts contain angle brackets, quote escapes, or javascript: prefixes inside text runs, hyperlink Target values, or shape descr attributes.
  • Unexpected outbound requests originating from browsers that rendered PHPPresentation HTML output.

Detection Strategies

  • Scan .pptx uploads by unzipping the archive and inspecting ppt/slides/*.xml, ppt/slides/_rels/*.xml.rels, and shape property XML for scripting payloads before invoking the HTML writer.
  • Enable Content Security Policy (CSP) violation reporting on pages that host generated presentation HTML to surface injected inline script execution.
  • Review web application firewall logs for upload requests containing PPTX files paired with suspicious URL-encoded script tokens.

Monitoring Recommendations

  • Monitor PHP application logs for calls into PhpPresentation\Writer\HTML and correlate with user-supplied upload sources.
  • Track browser-side errors and CSP reports on pages serving converted presentation content.
  • Alert on anomalous outbound connections from authenticated user sessions that recently rendered presentation HTML.

How to Mitigate CVE-2026-114404

Immediate Actions Required

  • Stop invoking the PhpPresentation\Writer\HTML writer on untrusted PPTX input until a patched release is deployed.
  • Serve any already-generated HTML through a strict Content Security Policy that forbids inline scripts and restricts script sources.
  • Validate and sanitize PPTX uploads at ingestion by rejecting files whose XML parts contain script tokens or javascript: URI schemes.
  • Audit downstream consumers of HTML produced by prior conversions and purge cached output derived from untrusted sources.

Patch Information

At the time of publication, no fixed version is listed in the NVD entry for CVE-2026-114404. Track the GitHub PHPPresentation Repository for a release that applies HTML entity encoding to text runs, hyperlink targets, and shape descr attributes in src/PhpPresentation/Writer/HTML.php. Upgrade to the fixed version as soon as it is published.

Workarounds

  • Post-process generated HTML with a well-maintained HTML sanitizer such as HTML Purifier before serving it to users.
  • Render presentations in a sandboxed origin or isolated subdomain so XSS cannot access primary application cookies or tokens.
  • Set the response Content-Security-Policy header to default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'none' on routes serving converted presentations.
  • Convert PPTX files to a non-HTML format such as PDF or rasterized images when source trust cannot be established.
bash
# Configuration example: restrictive CSP for pages serving generated presentation HTML
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; base-uri 'none'; frame-ancestors 'none'" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.