Katalog CVE

CVE-2026-77529

ŚrednieCVSS 4.8
Opublikowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.34%

Percentyl 30 - wyżej niż 30% wszystkich znanych CVE

Streszczenie

W FacturaScripts przed wersją 2026.2 akcja EditEmailSent::getHtmlAction zwraca przechowywaną wartość EmailSent::html przez Tools::fixHtml(), odwracając escapowanie encji HTML. Po stronie przeglądarki uproszczony filtr regex (limpiarJS) nie usuwa wielu ładunków XSS, które wykonują się w kontekście sesji administratora.

Ocena ryzyka

Administrator zarządzający szablonami powiadomień może raz umieścić ładunek, który następnie wykonuje się u każdego administratora otwierającego wiersz EmailSent, dając dostęp do sesji, tokenów CSRF i danych DOM.

Rekomendacja

Zaktualizuj FacturaScripts do wersji 2026.2 lub nowszej i przejrzyj istniejące szablony powiadomień pod kątem wstrzykniętego kodu.

Inne podatności w FacturaScripts

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS