Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-77529— FacturaScripts: Stored XSS via EmailSentHtml client-side regex sanitizer that admins can bypass to attack other admins

Quick assessment

Affected
NeoRazorX facturascripts
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

FacturaScripts 是一款开源的会计和开票软件。在 2026.2 版本之前,EditEmailSent::getHtmlAction 通过 Tools::fixHtml() 返回存储的 EmailSent::html 值,该函数会逆转 EmailSent::test() 在写入时应用的 Tools::noHtml HTML 实体转义。随后,浏览器端的 Tab/EmailSentHtml.html.twig 在通过一个手写的正则表达式清理器(limpiarJS)处理后,将 data.html 直接赋值给开放

CVSS 4.8 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-77529

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FacturaScripts: Stored XSS via EmailSentHtml client-side regex sanitizer that admins can bypass to attack other admins
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
NeoRazorX facturascripts < 2026.2 -

II. Public POCs for CVE-2026-77529

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-77529

请登录查看更多情报信息。

Other References for CVE-2026-77529 (2)

Same Patch Batch · NeoRazorX · 2026-12-04 · 8 CVEs total

CVE-2026-45262 9.9 CRITICAL FacturaScripts: Authenticated SQL injection in the REST API filter parameter via parenthes
CVE-2026-77526 9.9 CRITICAL FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbit
CVE-2026-47677 9.3 CRITICAL FacturaScripts: account takeover of any 2FA-enabled user
CVE-2026-45263 8.0 HIGH FacturaScripts: CSV formula injection in CSVExport allows authenticated low-priv users to
CVE-2026-45693 7.5 HIGH FacturaScripts: Unauthenticated Path Traversal in Static File Controllers Reads Private My
CVE-2026-77530 4.3 MEDIUM FacturaScripts: ListCuenta restore-special account mapping lacks authorization re-check an
CVE-2026-45710 3.5 LOW FacturaScripts: Stored XSS in WidgetVariante and WidgetSubcuenta modal lists via HTML-attr

IV. Related Vulnerabilities