CVE-2025-27109: Solid js Cross-Site Scripting Vulnerability
HIGHCVE-2025-27109 is a HIGH (CVSS 7.3) cross-site scripting vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Solid js libraries in the npm ecosystem. The issue involves solid lacks escaping of html in jsx fragments allows for cross-site scripting (xss). Remediation is available by upgrading affected packages to version 1.9.4.
CVE-2025-27109 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-27109
To remediate this vulnerability, upgrade all affected Solid js dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install solid-js@1.9.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls solid-js
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-27109, inspect your project dependencies using npm:
npm ls solid-js
Analyze the terminal output to locate any version of Solid js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.4), your application is affected.
Note: The npm ls solid-js command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Solid js, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27109 Affected Solid js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
solid-js
|
npm |
< 1.9.4
|
1.9.4
|
References
Frequently Asked Questions
What is CVE-2025-27109?
Which Solid js versions are affected?
What version fixes CVE-2025-27109?
Is solid-js affected?
What is the CVSS score of CVE-2025-27109?
What CWE is associated with CVE-2025-27109?
How can I check npm dependencies for CVE-2025-27109?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3qxh-p7jc-5xh6",
"modified" : "2025-02-25T17:49:40Z",
"published" : "2025-02-25T17:49:40Z",
"aliases" : [ "CVE-2025-27109" ],
"summary" : "Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS)",
"details" : "Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments.\n\nFor instance, `?text=<svg/onload=alert(1)>` would trigger XSS here.\n```js\n const [text] = createResource(() => {\n return new URL(getRequestEvent().request.url).searchParams.get(\"text\");\n });\n\n return (\n <>\n Text: {text()}\n </>\n );\n ```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "solid-js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/solidjs/solid/security/advisories/GHSA-3qxh-p7jc-5xh6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27109"
}, {
"type" : "WEB",
"url" : "https://github.com/solidjs/solid/commit/b93956f28ed75469af6976a98728e313d0edd236"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/solidjs/solid"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116", "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-25T17:49:40Z",
"nvd_published_at" : "2025-02-21T22:15:14Z"
}
}