Vulnerabilities / UiChemy / WPSEC-2026-0127

UiChemy <= 5.2.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via SVG Image Import

Medium 6.4 CWE-79Fixed in 5.2.3
ID
WPSEC-2026-0127
Plugin
UiChemy – Convert Figma, Prompts and AI Builds to Elementor, Gutenberg and Bricks (uichemy)
Affected
from 5.1.0 before 5.2.3
Remediation
Update to 5.2.3 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-22
Attack surface
UiChemy on WPSec AttackSurface
Fix released
Published

Description

The UiChemy plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG files imported by the Composer in versions 5.1.0 up to, and including, 5.2.2. When section HTML is inserted through the front-end editor REST endpoint (/wp-json/uichemy/v1/frontend/insert), the plugin downloads the remote images it references into the Media Library. It accepts SVG files after only a regex-based sanitizer, which misses namespace-prefixed script elements and entity-encoded javascript: URLs in SMIL animation attributes. The dedicated upload endpoint requires unfiltered_html for SVGs, but this import path has no such check. This makes it possible for authenticated attackers with Contributor-level access and above to store SVG files containing arbitrary web scripts on the site, which execute whenever a user accesses the uploaded file.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0