CVE DatabaseCVE-2026-120218
한국어 권고문 →
CVE-2026-1202183.5/LOWCWE-79CWE-94

Typemill Stored Cross-Site Scripting (XSS) via SVG Upload Vulnerability (CVE-2026-120218)

⚡ Jump to Patch
Affected Vendors
typemill
Affected Components
typemill
Published Date
2026-11-01
CVSS v3.1
3.5
LOW
EPSS (30d)
0.3%
FIRST.org
CISA KEV
Not Listed

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Typemill versions up to and including 2.26.0

Impact

Remote authenticated attackers can upload malicious SVG files to execute arbitrary JavaScript in the victim's browser context

Mitigation

Upgrade immediately to Typemill version 2.27.0 or later

Affected Products & Version Scope

All Typemill installations running version 2.26.0 or lower

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official security patch by upgrading Typemill to version 2.27.0 or later. Use the following commands to update your installation:

bash
# Navigate to your Typemill root directory and update via Composer
composer update typemill/typemill

# Alternatively, download and extract the patched release manually
wget https://github.com/typemill/typemill/archive/refs/tags/v2.27.0.tar.gz
tar -zxvf v2.27.0.tar.gz

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, configure your web server to force the download of SVG files instead of rendering them inline, preventing script execution in the browser context.

nginx
# Nginx configuration to mitigate inline SVG execution
location ~* ^/media/.*\.svg$ {
    add_header Content-Disposition 'attachment';
    add_header Content-Type 'application/octet-stream';
    add_header X-Content-Type-Options 'nosniff';
}

3. Log Audit & IoC Verification Commands

Run the following command on your server to scan existing uploaded SVG files for common XSS vectors and script tags.

bash
# Scan the media directory for SVG files containing script elements or event handlers
echo 'Scanning media directory for suspicious SVG files...'
find ./media/ -name '*.svg' -type f | xargs egrep -i '<script|javascript:|onload|onerror|onmouseover'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Organizations utilizing Typemill should immediately upgrade to version 2.27.0 or restrict SVG file rendering to mitigate XSS risks.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

A security flaw exists in the image saving logic of Typemill, a flat-file CMS. The vulnerability resides within the ControllerApiImage::saveImage function in the system/typemill/Models/SvgSanitizer.php file. Due to insufficient sanitization of SVG file contents during the upload process, the application fails to properly neutralize embedded malicious scripts, leading to Stored Cross-Site Scripting (XSS).

2. Exploitation Mechanics & Attack Scenario

An attacker with media upload privileges can craft a malicious SVG file containing embedded JavaScript (e.g., using <script> tags or inline event handlers like onload). When the attacker uploads this file, the flawed SvgSanitizer fails to strip the active content. Once stored on the server, any user or administrator who accesses the direct URL of the SVG or views a page rendering the image will trigger the execution of the malicious script within their browser session.

3. Infrastructure & Business Impact

Although rated with a CVSS score of 3.5 (Low), the practical impact can be severe if an administrator triggers the payload. Successful exploitation can lead to session hijacking, administrative credential theft, and unauthorized modification of CMS content (website defacement), posing a significant risk to organizational reputation and data integrity.

Official Vendor Advisories & References

NVD Original English 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.

Frequently Asked SecOps Questions (CVE-2026-120218)

FAQ

Q1. How critical is CVE-2026-120218 and is it actively exploited in the wild?

CVE-2026-120218 is rated CVSS 3.5 (LOW) with a 30-day EPSS exploitation probability of 0.3%. Organizations running affected versions should prioritize patching based on network exposure.

Q2. Which vendors and products are affected by CVE-2026-120218?

Primary impacted vendors include typemill across typemill. Scope summary: All Typemill installations running version 2.26.0 or lower

Q3. What temporary mitigations or workarounds exist for CVE-2026-120218 before patching?

[Mitigation] Upgrade immediately to Typemill version 2.27.0 or later Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2026-120218

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (typemill)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2026-120218 Typemill Stored Cross-Site Scripting (XSS) via SVG Upload Vulnerability (CVE-2026-120218) (CVSS 3.5) - Patch & Workaround | CVE Pulse