CVE-2025-45892 in OpenCartinfo

Summary

by MITRE • 07/25/2025

OpenCart version 4.1.0.4 is vulnerable to a Stored Cross-Site Scripting (XSS) attack via the blog editor. The vulnerability arises because input in the blog's editor is not properly sanitized or escaped before being rendered. This allows attackers to inject malicious JavaScript code

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 08/07/2025

OpenCart version 4.1.0.4 contains a critical stored cross-site scripting vulnerability that manifests through the blog editor component. This vulnerability falls under the CWE-79 category, which specifically addresses cross-site scripting flaws where untrusted data is improperly incorporated into web pages without adequate sanitization or escaping mechanisms. The flaw occurs when user input submitted through the blog editor is stored in the database and subsequently rendered back to users without proper HTML escaping or sanitization processes.

The technical exploitation of this vulnerability enables attackers to inject malicious JavaScript code directly into blog posts or comments that are then executed in the browsers of unsuspecting users who view the affected content. This stored nature of the vulnerability means that the malicious payload persists in the application's database and can affect multiple users over time, making it particularly dangerous for content management systems where user-generated content is common. The vulnerability specifically targets the blog editor's input handling mechanisms, where user-supplied text and formatting options are not adequately filtered to prevent the execution of harmful scripts.

The operational impact of this vulnerability extends beyond simple script execution as it can enable attackers to perform a wide range of malicious activities including session hijacking, credential theft, redirection to malicious sites, and data exfiltration. Attackers could craft blog posts containing JavaScript that steals cookies or session tokens from users, potentially allowing them to impersonate legitimate users and gain unauthorized access to administrative functions or user accounts. The persistent nature of stored XSS means that the attack vector remains active as long as the malicious content exists in the system, providing attackers with extended opportunities for exploitation.

Organizations using OpenCart 4.1.0.4 should immediately implement mitigations including input validation and output encoding for all user-generated content, particularly within rich text editors. The recommended approach involves implementing proper HTML sanitization libraries that strip or escape dangerous elements and attributes from user input before storage. Additionally, implementing Content Security Policy (CSP) headers can provide an additional layer of protection by restricting the sources from which scripts can be executed. According to ATT&CK framework category T1190, this vulnerability aligns with the technique of exploiting web applications through client-side code injection, while the mitigation strategies correspond to defensive measures under the data protection and input validation domains. Organizations should also consider implementing regular security audits of user-generated content and monitoring for suspicious script patterns within their content management systems.

Responsible

MITRE

Reservation

04/22/2025

Disclosure

07/25/2025

Moderation

accepted

CPE

ready

EPSS

0.00229

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!