# CVE-2022-31136: Cross-site Scripting in BookWyrm

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2022-07-07T17:55:13.000Z
- Modified: 2026-06-17T04:44:52.860Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Bookwyrm is an open source social reading and reviewing program. Versions of Bookwyrm prior to 0.4.1 did not properly sanitize html being rendered to users. Unprivileged users are able to inject scripts into user profiles, book descriptions, and statuses. These vulnerabilities may be exploited as cross site scripting attacks on users viewing these fields. Users are advised to upgrade to version 0.4.1. There are no known workarounds for this issue.

(As written by CVE List.)

## Affected

- bookwyrm-social bookwyrm: < 0.4.1
- joinbookwyrm bookwyrm: before 0.4.1

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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/bookwyrm-social/bookwyrm/security/advisories/GHSA-2cfh-v7rf-pxfp> (third-party-advisory)
- <https://github.com/bookwyrm-social/bookwyrm/commit/fe33fdcf564a6a5667aef75d5456bea08feab50d> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-31136](https://www.cve.org/CVERecord?id=CVE-2022-31136), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-31136](https://nvd.nist.gov/vuln/detail/CVE-2022-31136), Public domain, modified 2026-06-17

---

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