CVE-2022-0877: Cross-site Scripting in BookStack
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51315%
CWE
Published
3/9/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ssddanbrown/bookstack | composer | < 22.02.3 | 22.02.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing 'frame-src' CSP rules. The pre-patch CspService
focused on 'frame-ancestors' (embedding protection) but didn't enforce allowed iframe content sources. The middleware then applied incomplete CSP headers. The absence of 'frame-src' allowed attackers to embed malicious iframes. The patch introduced getFrameSrc()
in CspService
and consolidated CSP headers to include this rule, demonstrating where the vulnerability existed.