CVE-2026-77529: FacturaScripts Cross-site Scripting
Published 2026-12-04 · Source security-advisories@github.com
Not known to be exploited · medium severity — update FacturaScripts to 2026.2 or later on your normal schedule.
What to do
- Update FacturaScripts to version 2026.2 or later. Versions before 2026.2 are affected.
- Until it is patched, restrict network access to FacturaScripts and review which accounts can log in to it.
- Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| FacturaScripts | < 2026.2 | 2026.2 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs administrative privileges, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: confidentiality and integrity are rated low. A successful attack can affect components beyond the vulnerable one.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | High | The attacker needs administrative privileges. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Weakness: Cross-site Scripting
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.
Advisory text as published in the NVD record.