Cross-site Scripting Vulnerability in dom-expressions from Solid
CVE-2025-27108

6.1MEDIUM

Key Information:

Vendor

Ryansolid

Vendor
CVE Published:
21 February 2025

What is CVE-2025-27108?

CVE-2025-27108 is a security vulnerability affecting the dom-expressions library from Ryansolid, which is designed for efficient and performant manipulation of the Document Object Model (DOM) in web applications. This vulnerability arises from improper handling of user-defined inputs, particularly when using JavaScript's .replace() method. If exploited, it could allow attackers to execute arbitrary JavaScript code within a victim's web browser through Cross-Site Scripting (XSS) attacks, potentially compromising the security of web applications that utilize this library.

Technical Details

The flaw specifically lies in the way dom-expressions processes special replacement patterns initiated with the $ symbol during the attribute manipulation of <meta> tags through the solid-meta package. When attackers inject malicious code into user-controlled fields, they can trigger the .replace() method to execute harmful scripts. This flaw is particularly concerning because it allows for the execution of scripts within the context of the affected site's domain, leading to a possible escalation of the attack if the script accesses sensitive data or sessions.

Potential Impact of CVE-2025-27108

  1. Arbitrary Code Execution: Attackers can execute malicious JavaScript code in the context of affected web applications, leading to data theft, session hijacking, or further exploitation of the system.

  2. Data Breach Risks: The vulnerability could lead to unauthorized access to sensitive information stored in user profiles or web application data, potentially resulting in significant data breaches.

  3. Reputation Damage: Organizations affected by this vulnerability may face reputational harm if their applications are misused to target users, leading to loss of trust from customers and stakeholders.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.

Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.

Affected Version(s)

dom-expressions < 0.39.5

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.