# CVE-2021-3977: Cross-site Scripting (XSS) - Stored in invoiceninja/invoiceninja

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-24T20:10:10.000Z
- Modified: 2026-06-17T04:06:19.683Z
- Also known as: GHSA-xg6r-5gx4-qxjm
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## Description

invoiceninja is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

(As written by CVE List.)

## Affected

- invoiceninja invoiceninja/invoiceninja: from unspecified before v.5.33
- hillelcoren/invoice-ninja (Packagist): before 5.3.35
- invoiceninja invoice_ninja: before 4.5.47; from 5.0 before 5.3.33

## Every score

- @huntrdev: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://huntr.dev/bounties/99c4ed09-b66f-474a-bd74-eeccf9339fde> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/invoiceninja/invoiceninja/commit/1186eaa82375692d01d5ef3369c5b7bc7315b55f> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3977> (advisory)
- <https://github.com/invoiceninja/invoiceninja> (package)
- <https://github.com/invoiceninja/invoiceninja/releases/tag/v5.3.35> (web)

## Sources

- CVE List: [CVE-2021-3977](https://www.cve.org/CVERecord?id=CVE-2021-3977), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-xg6r-5gx4-qxjm](https://github.com/advisories/GHSA-xg6r-5gx4-qxjm), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3977](https://nvd.nist.gov/vuln/detail/CVE-2021-3977), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3977 · Whole record: https://cve.day/CVE-2021-3977.json · Rebuilt by cve.day 2026-11-25T22:58:06.160Z
