CVE-2025-27109:
Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS)
7.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26489%
CWE
Published
2/25/2025
Updated
2/25/2025
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
solid-js | npm | < 1.9.4 | 1.9.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing HTML escaping in JSX fragment resolution. The commit diff shows critical changes where an escape()
function was added to wrap parameters passed to resolveSSRNode
in ErrorBoundary
and Suspense
. Prior to the patch, these components directly passed user-controlled data (like URL parameters) to resolveSSRNode
without sanitization, allowing raw HTML injection. The example demonstrates XSS via {text()}
, which would flow through these rendering paths. The functions ErrorBoundary
and Suspense
are explicitly modified in the patch to add escaping, confirming their role in the vulnerability.