Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. solid-js
  4. ›
  5. CVE-2025-27109

CVE-2025-27109: Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS)

February 25, 2025

Inserts/JSX expressions inside illegal inlined JSX fragments lacked escaping, allowing user input to be rendered as HTML when put directly inside JSX fragments.

For instance, ?text=<svg/onload=alert(1)> would trigger XSS here.

const [text] = createResource(() => {
return new URL(getRequestEvent().request.url).searchParams.get("text");
});

return (
<>
Text: {text()}
</>
);

References

  • github.com/advisories/GHSA-3qxh-p7jc-5xh6
  • github.com/solidjs/solid
  • github.com/solidjs/solid/commit/b93956f28ed75469af6976a98728e313d0edd236
  • github.com/solidjs/solid/security/advisories/GHSA-3qxh-p7jc-5xh6
  • nvd.nist.gov/vuln/detail/CVE-2025-27109

Code Behaviors & Features

Detect and mitigate CVE-2025-27109 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.4

Fixed versions

  • 1.9.4

Solution

Upgrade to version 1.9.4 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/solid-js/CVE-2025-27109.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:39 +0000.