medium4.8
CVE-2021-3271
Stored cross-site scripting in PressBooks
Impact
PressBooks 5.17.3 contains a cross-site scripting (XSS). Stored XSS can be submitted via the Book Info's Long Description Body, and all actions to open or preview the books page will result in the triggering the stored XSS.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | pressbooks/pressbooks | < 5.18.0 | 5.18.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Pressbooks | Pressbooks | through 5.17.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/pressbooks/pressbooks
- https://github.com/pressbooks/pressbooks/pull/2072
- https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept/
- https://github.com/advisories/GHSA-9652-78hp-w58c
- https://nvd.nist.gov/vuln/detail/CVE-2021-3271
- https://github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8