CVE-2025-27108
Last modified
CVE-2025-27108 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. dom-expressions is a Fine-Grained Runtime for Performant DOM Rendering. In affected versions the use of javascript's `.replace()` opens up to potential Cross-site Scripting (XSS) vulnerabilities with the special replacement patterns beginning with `$`. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
Description
dom-expressions is a Fine-Grained Runtime for Performant DOM Rendering. In affected versions the use of javascript's `.replace()` opens up to potential Cross-site Scripting (XSS) vulnerabilities with the special replacement patterns beginning with `$`. Particularly, when the attributes of `Meta` tag from solid-meta are user-defined, attackers can utilise the special replacement patterns, either `$'` or `$\`` to achieve XSS. The solid-meta package has this issue since it uses `useAffect` and context providers, which injects the used assets in the html header. "dom-expressions" uses `.replace()` to insert the assets, which is vulnerable to the special replacement patterns listed above. This effectively means that if the attributes of an asset tag contained user-controlled data, it would be vulnerable to XSS. For instance, there might be meta tags for the open graph protocol in a user profile page, but if attackers set the user query to some payload abusing `.replace()`, then they could execute arbitrary javascript in the victim's web browser. Moreover, it could be stored and cause more problems. This issue has been addressed in version 0.39.5 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ryansolid | Dom Expressions | < 0.39.5 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-27108?
How severe is CVE-2025-27108?
How do I fix CVE-2025-27108?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-27102Agate is central authentication server software for OBiBa ep…5.4
- CVE-2025-27103DataEase is an open source business intelligence and data vi…6.5
- CVE-2025-27104vyper is a Pythonic Smart Contract Language for the EVM. Mul…7.5
- CVE-2025-27105vyper is a Pythonic Smart Contract Language for the EVM. Vyp…9.1
- CVE-2025-27106binance-trading-bot is an automated Binance trading bot with…8.8
- CVE-2025-27107Integrated Scripting is a tool for creating scripts for hand…8.6
- CVE-2025-27109solid-js is a declarative, efficient, and flexible JavaScrip…7.3
- CVE-2025-2711A vulnerability was found in Yonyou UFIDA ERP-NC 5.0. It has…6.1
- CVE-2025-27110Libmodsecurity is one component of the ModSecurity v3 projec…7.5
- CVE-2025-27111Rack is a modular Ruby web server interface. The Rack::Sendf…7.5
- CVE-2025-27112Navidrome is an open source web-based music collection serve…6.5
- CVE-2025-27113libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a NULL p…7.5
Are you affected by CVE-2025-27108?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
