{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-20848","id":"CVE-2021-20848","title":"Cross-site Scripting in github.com/schollz/rwtxt","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.","descriptionLong":"Cross-site scripting vulnerability in rwtxt versions prior to v1.8.6 allows a remote attacker to inject an arbitrary script via unspecified vectors.","published":"2021-11-24T08:25:50.000Z","updated":"2026-10-20T10:54:27.700920240Z","reserved":"2020-12-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"jpcert","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Zack Scholl rwtxt"],"affectedProducts":[{"vendor":"Zack Scholl","product":"rwtxt","defaultStatus":null,"versions":[{"status":"affected","version":"versions prior to v1.8.6"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/schollz/rwtxt","purl":"pkg:golang/github.com/schollz/rwtxt","ranges":["<1.8.6"],"fixed":["1.8.6"],"advisory":"GHSA-458f-26r3-x2c3"}],"cwes":["CWE-79"],"aliases":["GHSA-458f-26r3-x2c3","GO-2022-0231"],"references":[{"url":"https://github.com/schollz/rwtxt","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","package"]},{"url":"https://jvn.jp/en/jp/JVN22515597/index.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20848","tags":["advisory"]},{"url":"https://github.com/schollz/rwtxt/commit/c09fb17375c4c47b49524c688288af1fe20e730a","tags":["web","fix"]},{"url":"https://github.com/advisories/GHSA-458f-26r3-x2c3","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00906,"epssPercentile":0.60594,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-20848","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20848","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-20848","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-458f-26r3-x2c3","ok":true,"note":"GHSA-458f-26r3-x2c3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-20848","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}