CVE Catalog

CVE-2026-77529

MediumCVSS 4.8
Published: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.34%

30th percentile - higher than 30% of all known CVEs

Summary

In FacturaScripts before 2026.2, EditEmailSent::getHtmlAction returns the stored EmailSent::html value through Tools::fixHtml(), reversing HTML-entity escaping. On the browser side, a hand-rolled regex sanitizer (limpiarJS) fails to strip many XSS payloads, which execute in the administrator's session context.

Risk Assessment

An admin managing notification templates can plant a payload once that fires for every administrator opening an EmailSent row, exposing sessions, CSRF tokens, and DOM data.

Recommendation

Update FacturaScripts to version 2026.2 or later and review existing notification templates for injected code.

Other vulnerabilities in FacturaScripts

See all
Original NVD description (English source)

FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, EditEmailSent::getHtmlAction returns the stored EmailSent::html value through Tools::fixHtml(), which reverses the Tools::noHtml HTML-entity escaping that EmailSent::test() applied at write time. The browser-side Tab/EmailSentHtml.html.twig then assigns data.html straight to html.innerHTML inside an open shadow DOM after running it through a hand-rolled regex sanitizer (limpiarJS) that strips <script>...</script> blocks and inline event handlers via four regex passes. The filter is overlapping, single-pass, and oblivious to nested or unclosed tags, alternative XSS sinks (javascript: URIs, <iframe srcdoc>, <style> import), or HTML entity tricks. Several payloads survive intact and execute because the shadow root inherits the parent document's origin and JavaScript privileges, giving the attacker the viewing admin's session, CSRF tokens, and any DOM data on the page. Storage of the payload is straightforward: EmailNotification::test() only sanitises name and subject, leaving body untouched, so an admin who can manage notification templates plants the payload once and every administrator who later opens an EmailSent row generated from that template fires it. This issue has been patched in version 2026.2.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS