CVE-2026-135289 in ERPSaaSinfo

Summary

by MITRE • 11/23/2026

ERPSaaS 3.7.9 through 3.47.0 contains a stored cross-site scripting vulnerability that allows authenticated company users to inject script markup through unescaped client and company address fields. Attackers can store script in address lines rendered by getFormattedAddressHtml() via unescaped Blade output, executing in browsers of users viewing, previewing or printing invoices and estimates.

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

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified in ERPSaaS versions 3.7.9 through 3.47.0 represents a significant security flaw classified as Stored Cross-Site Scripting, commonly referred to as Persistent XSS. This type of attack is particularly dangerous because the malicious payload is not executed immediately upon submission but is instead stored on the target server within the application's database or file system. In this specific instance, the injection vector involves unescaped client and company address fields. When an authenticated user with access to these modules inputs specially crafted data containing script markup, the system fails to properly sanitize or encode this input before storing it for later retrieval. This lack of proper output encoding allows malicious JavaScript code to become a permanent part of the application's content until manually removed by an administrator.

The technical mechanism behind this vulnerability centers on the rendering function getFormattedAddressHtml(). Within the ERPSaaS framework, Blade templates are used to generate HTML views dynamically. The flaw occurs because the address data retrieved from the database is passed directly into these templates without adequate escaping mechanisms such as htmlspecialchars or equivalent encoding functions in Laravel's Blade syntax. Consequently, when the application renders invoice and estimate documents for viewing, previewing, or printing, it interprets the stored script tags as executable code rather than plain text. This behavior violates fundamental web security principles regarding input validation and output encoding, which are critical defenses against injection attacks.

From an operational perspective, the impact of this vulnerability is severe due to its persistence and broad exposure scope. Unlike reflected XSS where the payload exists only in a single request, stored XSS affects every user who views or prints invoices and estimates containing the malicious address data. An attacker can craft a phishing campaign by embedding links within the script that redirect victims to fraudulent login pages designed to steal credentials. Alternatively, the script could perform actions on behalf of the victim without their knowledge, such as modifying financial records, exporting sensitive customer data, or defacing the application interface. Since invoices and estimates are critical business documents frequently accessed by multiple stakeholders including accountants, managers, and clients, the potential for widespread compromise is high.

This vulnerability aligns with CWE-79 Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting in industry standards. The attack pattern corresponds to ATT&CK technique T1059 Command and Scripting Interpreter, specifically sub-technique T1059.007 JavaScript, which describes the use of client-side scripts for execution. Furthermore, it relates to CWE-83 Improper Neutralization of Script in HTML Tags since the script is embedded within HTML elements during rendering. The persistence aspect also touches upon CWE-642 External Control of Critical State Data, as the application allows untrusted input to alter its persistent state in a way that leads to security bypasses.

Mitigation strategies must focus on both immediate remediation and long-term architectural improvements. Developers should immediately apply patches provided by ERPSaaS if available for versions 3.7.9 through 3.47.0, ensuring that the getFormattedAddressHtml() function properly encodes all dynamic content before rendering it in Blade templates using standard output escaping functions. For organizations unable to patch immediately, input validation rules should be enforced at the application layer to reject or sanitize any HTML tags within address fields during data entry. Additionally, implementing a Content Security Policy header can help mitigate the impact by restricting the sources from which scripts are allowed to execute, thereby preventing the injection of arbitrary external scripts even if they manage to bypass other defenses. Regular security audits and code reviews focusing on output encoding practices across all user-facing modules are essential to prevent similar vulnerabilities in future updates.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00298

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!