{"id":"CVE-2026-27964","aliases":["CVE-2026-27964","GHSA-gq5c-rw37-g46c"],"related":[],"kind":"vulnerability","state":"published","title":"FacturaScripts: Reflected Cross-Site Scripting (XSS) via Cookie Manipulation","summary":"FacturaScripts is an open source accounting and invoicing software. Versions 2025.7 and prior contain a Reflected Cross-Site Scripting (XSS) vulnerability through the fsNick cookie parameter. The application reflects the cookie's value directly into the HTML without sanitization. The fsNick cookie is rendered into the DOM without encoding. While the server does reject the modified session and forces a logout, the HTML containing the payload reaches the browser first. This lets the script execute immediately upon load, effectively beating the redirect. This issue has been fixed in version 2025.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FacturaScripts is an open source accounting and invoicing software. Versions 2025.7 and prior contain a Reflected Cross-Site Scripting (XSS) vulnerability through the fsNick cookie parameter. The application reflects the cookie's value directly into the HTML without sanitization. The fsNick cookie is rendered into the DOM without encoding. While the server does reject the modified session and forces a logout, the HTML containing the payload reaches the browser first. This lets the script execute immediately upon load, effectively beating the redirect. This issue has been fixed in version 2025.8.","source":"cvelist"},{"lang":"en","text":"### Summary\nA Reflected Cross-Site Scripting (XSS) vulnerability exists in the fsNick cookie parameter. The application reflects the cookie's value directly into the HTML without sanitization.\n\n### Details\nThe fsNick cookie is rendered into the DOM without encoding. While the server does reject the modified session and forces a logout, the HTML containing the payload reaches the browser first. This lets the script execute immediately upon load, effectively beating the redirect.\n\n### PoC\n\n1. Log in to the application with any valid account.\n<img width=\"2078\" height=\"302\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d8a9a779-44e0-4a3e-839f-0a031868fbd5\" />\n\n2. Capture any the GET request .\n<img width=\"1267\" height=\"276\" alt=\"image\" src=\"https://github.com/user-attachments/assets/22e43f73-4f86-4cab-a074-7aba584a71ac\" />\n\n3. Modify  the value of \"fsNick\" with the following JavaScript:\n`<script>alert(window.origin)</script>`\n\n4. Send the modified request.\n<img width=\"1569\" height=\"319\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ade88db1-aadc-4c50-9e02-d09888067e98\" />\n\n5. Result\n<img width=\"1217\" height=\"771\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5858fe9f-127a-4845-b484-5a7ef4ae2cb4\" />\n\n### Impact\nThe payload executes before the session ends, which could potentially allow for a single unauthorized action before the logout.","format":"markdown","source":"ghsa"},{"lang":"es","text":"FacturaScripts es un software de contabilidad y facturación de código abierto. Las versiones 2025.7 y anteriores contienen una vulnerabilidad de cross-site scripting (XSS) reflejado a través del parámetro de cookie fsNick. La aplicación refleja el valor de la cookie directamente en el HTML sin sanitización. La cookie fsNick se renderiza en el DOM sin codificación. Aunque el servidor rechaza la sesión modificada y fuerza un cierre de sesión, el HTML que contiene la carga útil llega primero al navegador. Esto permite que el script se ejecute inmediatamente al cargar, superando eficazmente la redirección. Este problema ha sido solucionado en la versión 2025.8.","source":"nvd"}],"published":"2026-05-07T19:34:28.000Z","modified":"2026-10-30T17:00:04.178Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.9,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.9,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2025.8","status":"affected"}],"vendor":"NeoRazorX","product":"facturascripts","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2025.8"}],"ecosystem":"Packagist","package":"facturascripts/facturascripts","purl":"pkg:composer/facturascripts/facturascripts","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2025.11","status":"affected","fixed":"2025.81"}],"ecosystem":"Packagist","package":"facturascripts/facturascripts","purl":"pkg:composer/facturascripts/facturascripts","source":"ghsa"}],"references":[{"url":"https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-gq5c-rw37-g46c","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/NeoRazorX/facturascripts/commit/9066e10326029adf012114e27eb5f3f33f78ecfd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27964","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/NeoRazorX/facturascripts","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-19T13:00:46.326Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27964","url":"https://www.cve.org/CVERecord?id=CVE-2026-27964","licence":"CVE Terms of Use","modified":"2026-05-19T13:01:06.903Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gq5c-rw37-g46c","url":"https://github.com/advisories/GHSA-gq5c-rw37-g46c","licence":"CC-BY-4.0","modified":"2026-10-30T17:00:04.178Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27964","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27964","licence":"Public domain","modified":"2026-07-24T13:10:00.223Z"}],"updatedAt":"2026-11-25T22:59:21.939Z","epss":{"score":0.00104,"percentile":0.01116,"date":"2026-12-01T12:00:22.000Z"}}