CVE-2022-0877 Cross-site Scripting (XSS) - Stored in bookstackapp/bookstack
Attackers can inject malicious scripts into BookStack documentation pages, potentially stealing user sessions or executing code in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-0877?
CVE-2022-0877 is a high-severity cross-site scripting vulnerability in bookstackapp/bookstack, published on 8 Mar 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Cross-site Scripting (XSS) - Stored in GitHub repository bookstackapp/bookstack prior to v22.02.3.
Weakness: CWE-79
Which versions are affected by CVE-2022-0877?
2 open source packages ship an affected version, including ssddanbrown/bookstack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ssddanbrown/bookstack Packagist | All versions | 22.02.3 |
ssddanbrown/bookstack Packagist | All versions | 22.02.3 |
Products include Bookstackapp Bookstack.
How do I fix CVE-2022-0877?
Upgrade ssddanbrown/bookstack to 22.02.3 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-0877 being exploited?
There is no known exploitation of CVE-2022-0877 in the wild and no public exploit code.
Other vulnerabilities in bookstackapp/bookstack
- CVE-2020-5256 Remote Code Execution Through Image Uploads in BookStack
- CVE-2020-26210 Cross-Site Scripting in BookStack
- CVE-2020-26211 Cross-Site Scripting in BookStack
- CVE-2021-3915 Unrestricted Upload of File with Dangerous Type in bookstackapp/bookstack
- CVE-2023-6199 Book Stack v23.10.2 - LFR via Blind SSRF
Sources
Also known as GHSA-5rcc-6cmj-7728.