Read the docs

Stored cross-site scripting in FacturaScripts sent email view

Priority LOW 37CWE-184Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

FacturaScripts before 2026.2 displays stored email HTML through a browser-side regex sanitizer that misses nested tags, alternative sinks and entity tricks, which is cross-site scripting (CWE-79). An administrator who can manage notification templates can plant a payload that runs in the browser of every administrator who later opens a matching sent email. The script runs with the viewing administrator's session and privileges, exposing their session and CSRF tokens.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

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.

Why it matters now

Fix Fixed facturascripts (NeoRazorX): 2026.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
NeoRazorXfacturascriptsbefore 2026.22026.2Patch availableCNA
  • facturascripts VendorNeoRazorX Affected before 2026.2 Fixed in 2026.2 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:*——NeoRazorX
  • cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:* Versions — — ·NeoRazorX

Remediation

Update FacturaScripts to version 2026.2, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA facturascripts (NeoRazorX) Fixed in 2026.2

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-77529

References

  • TI-2026-67066 Path traversal in NeoRazorX facturascripts CVSS 3.1CRITICAL 9.9
  • TI-2026-104319 Authenticated SQL injection in FacturaScripts REST API filter parameter CVSS 3.1CRITICAL 9.9
  • TI-2026-19336 FacturaScripts has a Stored Cross-Site Scripting (XSS) in "Observations" field via History View CVSS 3.1CRITICAL 9.0
  • TI-2026-104320 CSV formula injection in FacturaScripts CSV export CVSS 3.1HIGH 8.0
  • TI-2026-22235 Remote Code Execution (RCE) via Zip Slip in Plugin Upload Mechanism CVSS 3.1HIGH 7.2
  • TI-2026-31084 FacturaScripts: Unauthenticated phpinfo() Disclosure via Installer Endpoint in FacturaScripts CVSS 3.1MEDIUM 5.3
See all 31 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences