CVE-2026-58030

SyntaxHighlight stored XSS via unsanitized 'linelinks' attribute

Published Jul 1, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Wikimedia Foundation SyntaxHighlight_GeSHi.

This vulnerability is associated with program files includes/SyntaxHighlight.Php.



This issue affects SyntaxHighlight_GeSHi: from * before 1.46.0, 1.45.4, 1.44.6, 1.43.9.

Analysis

AI-generated

Technical impact

The vulnerability stems from improper neutralization of input during web page generation in the Wikimedia Foundation SyntaxHighlight_GeSHi library. A maliciously crafted value for the 'linelinks' attribute is stored in page source and later output without escaping, providing a persistent XSS vector. When a user views the affected page, the injected script runs in the potentially exposing session data or performing further malicious actions.

Affected Systems

All versions of Wikimedia Foundation SyntaxHighlight_GeSHi, including 1.45.4, 1.44.6, 1.43.9 and any earlier releases, are affected.

Risk and Exploitability

The CVSS score of 5.3 places this vulnerability in the moderate severity range. The EPSS score is below 1%, suggesting exploitation is currently unlikely, and the issue is not listed in the CISA KEV catalog. Attackers must embed malicious code into the 'linelinks' attribute during content creation; the stored value is then interpreted for each viewer, making the vulnerability potentially widespread if the attribute can be controlled.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SyntaxHighlight_GeSHi to version 1.46.0 or later, which removes the vulnerable handling of the linelinks attribute.
  • Configure SyntaxHighlight_GeSHi to sanitize the linelinks attribute before it is stored or rendered, preventing malicious content from being persisted.
  • Ensure that all dynamic output generated by SyntaxHighlight_GeSHi passes proper HTML encoding to prevent stored cross‑site scripting.

Generated by OpenCVE AI on August 1, 2026 at 23:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6380-1 mediawiki security update
References
History
Type Values Removed Values Added
First Time appeared Wikimedia
Wikimedia syntaxhighlight Geshi
Vendors & Products Wikimedia
Wikimedia syntaxhighlight Geshi
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 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Wikimedia Foundation SyntaxHighlight_GeSHi. This vulnerability is associated with program files includes/SyntaxHighlight.Php. This issue affects SyntaxHighlight_GeSHi: from * before 1.46.0, 1.45.4, 1.44.6, 1.43.9.
Title SyntaxHighlight stored XSS via unsanitized 'linelinks' attribute
Weaknesses CWE-79
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
wikimedia-foundation
Published
Updated
Nov 17, 2026, 11:22 PM
Reserved
Jun 27, 2026, 1:32 PM
Status
Analyzed
Published
Jul 1, 2026, 4:16 PM
Modified
Nov 18, 2026, 12:18 AM