HackerFeeds
All CVEs

CVE-2026-77529: FacturaScripts Cross-site Scripting

MEDIUM4.8

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

  1. Update FacturaScripts to version 2026.2 or later. Versions before 2026.2 are affected.
  2. Until it is patched, restrict network access to FacturaScripts and review which accounts can log in to it.
  3. Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
  4. Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.

Affected and fixed versions

ProductAffectedFixed in
FacturaScripts< 2026.22026.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.

CVSS 3.1 metrics for CVE-2026-77529
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredHighThe attacker needs administrative privileges.
User interactionRequiredA victim has to take an action, such as opening a link or file.
ConfidentialityLowPartial loss of confidentiality.
IntegrityLowPartial loss of integrity.
AvailabilityNoneNo 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

An attacker can make script run in another user's browser in the context of the affected site, allowing session theft or actions taken as that user.

Classified as CWE-79, CWE-184.

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.

View on NVD