Overview
The vulnerability, identified as CVE-2025-48050, resides in the DOMPurify library, up until version 3.2.5, and could potentially lead to system compromise or data leakage. It is significant due to the widespread use of the DOMPurify library, and the potential for malicious actors to exploit it for unauthorized system access.
Vulnerability Summary
CVE ID: CVE-2025-48050
Severity: High (7.5 CVSS)
Attack Vector: Local
Privileges Required: Low
User Interaction: Required
Impact: Potential system compromise or data leakage
Affected Products
Escape the Surveillance Era
Most apps won’t tell you the truth.
They’re part of the problem.
Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.
Ameeba Chat gives you a way out.
- • No phone number
- • No email
- • No personal info
- • Anonymous aliases
- • End-to-end encrypted
Chat without a trace.
Product | Affected Versions
DOMPurify | Up to and including version 3.2.5
How the Exploit Works
The vulnerability lies in the scripts/server.js file of DOMPurify, where it does not correctly ensure that a pathname is located under the current working directory. This means that a malicious actor could potentially manipulate the pathname to gain unauthorized access to parts of the system.
Conceptual Example Code
Consider the following conceptual example of how the vulnerability might be exploited. This is a pseudocode representation and not an actual exploit:
let malicious_path = "/../../etc/passwd";
let server = require("dompurify/scripts/server.js");
server.start({
root: "/var/www/app",
path: malicious_path
});
In this example, the malicious path (‘/../../etc/passwd’) could potentially lead to unauthorized access to sensitive system files.
Mitigation Guidance
Users are advised to apply the vendor patch as soon as it is available. In the meantime, a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can be used as a temporary mitigation measure. Users should also consider implementing least privilege principles and input validation to further protect against such vulnerabilities.

