{"id":"CVE-2021-20848","aliases":["CVE-2021-20848","GHSA-458f-26r3-x2c3","GO-2022-0231"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in github.com/schollz/rwtxt","summary":"Cross-site scripting vulnerability in rwtxt versions prior to v1.8.6 allows a remote attacker to inject an arbitrary script via unspecified vectors.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cross-site scripting vulnerability in rwtxt versions prior to v1.8.6 allows a remote attacker to inject an arbitrary script via unspecified vectors.","source":"cvelist"},{"lang":"en","text":"Cross-site Scripting in github.com/schollz/rwtxt","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad de tipo Cross-site scripting en rwtxt versiones anteriores a v1.8.6, permite a un atacante remoto inyectar un script arbitrario por medio de vectores no especificados","source":"nvd"}],"published":"2021-11-24T08:25:50.000Z","modified":"2026-06-17T03:34:32.253Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"versions prior to v1.8.6","status":"affected"}],"vendor":"Zack Scholl","product":"rwtxt","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Go","package":"github.com/schollz/rwtxt","purl":"pkg:golang/github.com/schollz/rwtxt","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Go","package":"github.com/schollz/rwtxt","purl":"pkg:golang/github.com/schollz/rwtxt","source":"go"},{"ranges":[{"status":"affected","fixed":"1.8.6"}],"vendor":"rwtxt_project","product":"rwtxt","cpe":"cpe:2.3:a:rwtxt_project:rwtxt:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/schollz/rwtxt","tags":["package","product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jvn.jp/en/jp/JVN22515597/index.html","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20848","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/schollz/rwtxt/commit/c09fb17375c4c47b49524c688288af1fe20e730a","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-458f-26r3-x2c3","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"jpcert","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20848","url":"https://www.cve.org/CVERecord?id=CVE-2021-20848","licence":"CVE Terms of Use","modified":"2024-08-03T17:53:22.781Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-458f-26r3-x2c3","url":"https://github.com/advisories/GHSA-458f-26r3-x2c3","licence":"CC-BY-4.0","modified":"2024-08-21T14:57:06.036Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0231","url":"https://pkg.go.dev/vuln/GO-2022-0231","licence":"CC-BY-4.0","modified":"2026-03-03T04:49:37.818Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20848","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20848","licence":"Public domain","modified":"2026-06-17T03:34:32.253Z"}],"updatedAt":"2026-11-25T22:58:05.750Z","epss":{"score":0.00906,"percentile":0.60912,"date":"2026-12-01T12:00:22.000Z"}}