Skip to content

Stored XSS via HTML injection in user-controlled metadata

Moderate
raizasafeel published GHSA-2x47-gr9q-w6fv May 15, 2026

Package

No package listed

Affected versions

< 2.52.0

Patched versions

=>2.52.2

Description

An authenticated user could store crafted (including HTML-entity-encoded) content in fields like the profile Bio; _lms.py decoded it via BeautifulSoup.get_text() and rendered it unescaped into the server response, executing arbitrary JavaScript for any visitor, including unauthenticated guests. Fixed by re-encoding server-side (escape_html) and escaping all metadata/SEO output in the template; patched in 2.52.2.

Severity

Moderate

CVE ID

CVE-2026-46546

Weaknesses

No CWEs

Credits