LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 6.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

BookWyrm before 0.4.1 allowed untrusted HTML in profiles, book descriptions, and statuses. An attacker could make script run when another user views crafted content. Business impact is moderate, mainly affecting organizations running public or community BookWyrm instances.

Executive priority

Treat as a moderate-priority fix for any exposed BookWyrm instance. It is not cited as actively exploited, but public community features increase the chance of user exposure. Upgrade scheduling should be prompt, especially for open-registration deployments.

Technical view

CVE-2022-31136 is CWE-79 cross-site scripting from insufficient sanitization of rendered HTML. The advisory says unprivileged users can inject scripts into user profiles, book descriptions, and statuses. CVSS 3.1 is 6.3, network reachable, low complexity, user interaction required, with low confidentiality, integrity, and availability impact.

Likely exposure

Exposure is limited to BookWyrm deployments running versions before 0.4.1, especially instances where untrusted users can create visible profile, book, or status content. The source bundle does not identify affected forks, managed services, or downstream distributions.

Exploitation context

Provided sources do not show KEV listing or active exploitation. Practical abuse requires a victim to view attacker-controlled content rendered by the vulnerable instance. The issue matters for public communities because unprivileged content authors can reach other users through normal site features.

Researcher notes

The sources name three injection surfaces: user profiles, book descriptions, and statuses. The patch reference should be reviewed for sanitizer changes and regression coverage. Evidence is insufficient to claim exploit-in-the-wild activity, affected hosted services, or a workaround.

Mitigation direction

  • Upgrade BookWyrm to version 0.4.1 or later.
  • If upgrade is delayed, review vendor guidance; sources state no known workaround.
  • Moderate or remove suspicious user profiles, book descriptions, and statuses.
  • Prioritize instances with open registration or broad community posting.

Validation and detection

  • Inventory all BookWyrm instances and confirm their running version.
  • Check whether any instance runs a version before 0.4.1.
  • Review visible user-generated fields for suspicious embedded HTML or script-like content.
  • Confirm the upgrade path against the GitHub advisory and patch commit.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31136 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L2.83.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.3Medium
CVSS 3.1 vector shape for CVE-2022-31136Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
bookwyrm-socialbookwyrm< 0.4.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.