CVE-2026-120218

Typemill SvgSanitizer.php saveImage cross site scripting

Published Nov 1, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
A flaw has been found in Typemill up to 2.26.0. The impacted element is the function ControllerApiImage::saveImage of the file system/typemill/Models/SvgSanitizer.php. Executing a manipulation can lead to cross site scripting. The attack may be performed from remote. The exploit has been published and may be used. Upgrading to version 2.27.0 is sufficient to resolve this issue. This patch is called 9ca43c4a7b6764c5a6ac11a2ccc099b036ee3cef. It is recommended to upgrade the affected component.

Analysis

AI-generated

Technical impact

A vulnerability was identified in the SvgSanitizer.php component of Typemill CMS, specifically within the ControllerApiImage::saveImage method. The flaw permits an attacker to embed malicious JavaScript payloads into processed SVG files, resulting in stored cross‑site scripting. When the SVG is displayed by the application, the injected script executes in the context of the viewer, exposing the application to client‑side code execution risks.

Affected Systems

Typemill is affected in all releases up through version 2.26.0. The vulnerability resides in the SvgSanitizer component located under system/typemill/Models/SvgSanitizer.php. Users running Typemill versions earlier than 2.27.0 are therefore exposed.

Risk and Exploitability

The CVSS base score of 5.1 indicates moderate severity. An exploit has been published and is available, raising the practical risk. EPSS is not reported, so the exploitation probability in the wild remains uncertain. The vulnerability is remote; an attacker only needs to submit a crafted SVG image to the API endpoint. The flaw is not listed in CISA KEV.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Typemill to the latest release, v2.27.0, which contains the fix for the SvgSanitizer injection issue.
  • If an upgrade cannot be performed immediately, restrict SVG file uploads to trusted users, enforce server‑side validation to reject malformed SVG content, and consider disabling the API endpoint that accepts image uploads until a patch is applied.
  • Monitor application logs and server requests for unusual image upload attempts or anomalous JavaScript payloads and investigate any detected anomalies promptly.

Generated by OpenCVE AI on November 1, 2026 at 08:20 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': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw has been found in Typemill up to 2.26.0. The impacted element is the function ControllerApiImage::saveImage of the file system/typemill/Models/SvgSanitizer.php. Executing a manipulation can lead to cross site scripting. The attack may be performed from remote. The exploit has been published and may be used. Upgrading to version 2.27.0 is sufficient to resolve this issue. This patch is called 9ca43c4a7b6764c5a6ac11a2ccc099b036ee3cef. It is recommended to upgrade the affected component.
Title Typemill SvgSanitizer.php saveImage cross site scripting
First Time appeared Typemill
Typemill typemill
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:typemill:typemill:*:*:*:*:*:*:*:*
Vendors & Products Typemill
Typemill typemill
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C'}

cvssV4_0

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

Weaknesses
  • CWE-79

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

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 6, 2026, 7:02 PM
Reserved
Oct 31, 2026, 5:08 PM
Status
Deferred
Published
Nov 1, 2026, 7:17 AM
Modified
Nov 6, 2026, 7:17 PM