GHSA-gq5c-rw37-g46c

Suggest an improvement
Source
https://github.com/advisories/GHSA-gq5c-rw37-g46c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-gq5c-rw37-g46c/GHSA-gq5c-rw37-g46c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gq5c-rw37-g46c
Aliases
Published
2026-05-07T19:34:28Z
Modified
2026-09-10T03:51:05Z
Severity
  • 3.9 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
FacturaScripts vulnerable to Reflected Cross-Site Scripting (XSS) via Cookie Manipulation
Details

Summary

A 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.

Details

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.

PoC

  1. Log in to the application with any valid account. image

  2. Capture any the GET request . image

  3. Modify the value of "fsNick" with the following JavaScript: <script>alert(window.origin)</script>

  4. Send the modified request. image

  5. Result image

Impact

The payload executes before the session ends, which could potentially allow for a single unauthorized action before the logout.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-07T19:34:28Z",
    "nvd_published_at":  "2026-05-18T22:16:38Z",
    "severity":  "LOW"
}
References

Affected packages

Packagist / facturascripts/facturascripts

Package

Name
facturascripts/facturascripts
Purl
pkg:composer/facturascripts/facturascripts

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2025.71

Affected versions

2018.*
2018.03
2018.04
2018.05
2018.11
v2018.*
v2018.12
v2018.13
v2018.14
v2018.15
v2018.16
v2020.*
v2020.01
v2020.2
v2020.3
v2020.4
v2020.51
v2020.61
v2020.71
v2020.80
Other
v2021
v2024
v2025
v2021.*
v2021.1
v2021.2
v2021.4
v2021.51
v2021.71
v2021.81
v2022.*
v2022.2
v2022.4
v2022.06
v2022.08
v2022.51
v2023.*
v2023.03
v2023.08
v2023.16
v2023.21
v2024.*
v2024.1
v2024.2
v2024.3
v2024.5
v2024.7
v2024.8
v2024.9
v2024.91
v2024.93
v2024.94
v2024.95
v2024.96
v2025.*
v2025.2
v2025.3
v2025.4
v2025.7
v2025.8
v2025.11
v2025.41
v2025.43
v2025.71

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-gq5c-rw37-g46c/GHSA-gq5c-rw37-g46c.json"