# CVE-2021-20848: Cross-site Scripting in github.com/schollz/rwtxt

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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.91%, higher than 60% of CVEs (2026-12-01)
- Published: 2021-11-24T08:25:50.000Z
- Modified: 2026-06-17T03:34:32.253Z
- Also known as: GHSA-458f-26r3-x2c3, GO-2022-0231
- Weaknesses: CWE-79
- Assigned by: jpcert

## Description

Cross-site scripting vulnerability in rwtxt versions prior to v1.8.6 allows a remote attacker to inject an arbitrary script via unspecified vectors.

(As written by CVE List.)

## Affected

- Zack Scholl rwtxt: versions prior to v1.8.6
- github.com/schollz/rwtxt (Go): before 1.8.6
- rwtxt_project rwtxt: before 1.8.6

## Every score

- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/schollz/rwtxt> (package, product, third-party-advisory)
- <https://jvn.jp/en/jp/JVN22515597/index.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20848> (advisory)
- <https://github.com/schollz/rwtxt/commit/c09fb17375c4c47b49524c688288af1fe20e730a> (fix, web)
- <https://github.com/advisories/GHSA-458f-26r3-x2c3> (advisory)

## Sources

- CVE List: [CVE-2021-20848](https://www.cve.org/CVERecord?id=CVE-2021-20848), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-458f-26r3-x2c3](https://github.com/advisories/GHSA-458f-26r3-x2c3), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0231](https://pkg.go.dev/vuln/GO-2022-0231), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-20848](https://nvd.nist.gov/vuln/detail/CVE-2021-20848), Public domain, modified 2026-06-17

---

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