# CVE-2022-25847: Cross-site Scripting (XSS) in serve-lite

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/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.62%, higher than 51% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-25T05:00:01.656Z
- Modified: 2026-06-17T04:34:22.937Z
- Also known as: GHSA-j8x7-qcw4-xx85
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

All versions of the package serve-lite are vulnerable to Cross-site Scripting (XSS) because when it detects a request to a directory, it renders a file listing of all of its contents with links that include the actual file names without any sanitization or output encoding.

(As written by CVE List.)

## Affected

- serve-lite: before *
- serve-lite (npm): up to 1.1.0
- serve-lite_project serve-lite: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25847> (advisory)
- <https://github.com/beenotung/serve-lite> (package)

## Sources

- CVE List: [CVE-2022-25847](https://www.cve.org/CVERecord?id=CVE-2022-25847), CVE Terms of Use, modified 2025-04-01
- GitHub Advisory Database: [GHSA-j8x7-qcw4-xx85](https://github.com/advisories/GHSA-j8x7-qcw4-xx85), CC-BY-4.0, modified 2025-04-01
- NVD: [CVE-2022-25847](https://nvd.nist.gov/vuln/detail/CVE-2022-25847), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25847 · Whole record: https://cve.day/CVE-2022-25847.json · Rebuilt by cve.day 2026-11-25T22:58:18.327Z
