CVE-2026-77529
Received Received - Intake

Stored XSS in FacturaScripts Email Templates

Vulnerability report for CVE-2026-77529, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
facturascripts facturascripts to 2026.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-184 The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves a stored cross-site scripting (XSS) flaw in FacturaScripts versions before 2026.2. An attacker can inject malicious scripts into email templates via the body field, which bypasses sanitization. When an admin views an email sent using this template, the script executes in their browser due to improper HTML entity handling and weak sanitization in the shadow DOM.

Detection Guidance

This vulnerability requires checking FacturaScripts instances for versions prior to 2026.2. Inspect EmailSent rows for malicious HTML in the body field, particularly payloads bypassing the regex sanitizer. Check notification templates for unauthorized script tags or event handlers in the email body.

Impact Analysis

An attacker could steal the admin's session, CSRF tokens, or sensitive data on the page. The attack requires an admin to manage notification templates and view an email generated from a malicious template. The impact includes unauthorized access to the system and potential data breaches.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or sensitive data, violating GDPR and HIPAA requirements for data protection and access control. Organizations using affected versions may face compliance violations and potential legal consequences.

Mitigation Strategies

Upgrade FacturaScripts to version 2026.2 or later immediately. Review and sanitize all EmailSent rows and notification templates for malicious HTML payloads. Remove any untrusted admin access to template editing until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-77529. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...