Stored cross-site scripting in PressBooks
The advisory, in context
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
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 5.18.0
Fixed in 5.18.0
128 explicitly affected versions
2.3.4, 3.5.0, 3.5.1, 3.5.2, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.7.0, 3.7.1, 3.8.0, 3.8.1, 3.9.0, 3.9.1, 3.9.10, 3.9.2, 3.9.2.1, 3.9.7.1, 3.9.7.2, 3.9.8, 3.9.8-RC1, 3.9.8-RC2, 3.9.8-RC3, 3.9.8.1, 3.9.8.2, 3.9.9, 4.0.0, 4.0.0-RC1, 4.0.1, 4.0.2, 4.1.0, 4.2.0, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.5.0, 4.5.1, 5.0.0, 5.0.0-beta.1, 5.0.0-rc.1, 5.0.1, 5.0.2, 5.1.0, 5.1.1, 5.10.0, 5.10.1, 5.11.0, 5.12.0, 5.13.0, 5.14.0, 5.14.1, 5.14.2, 5.14.3, 5.14.4, 5.14.5, 5.14.6, 5.15.0, 5.15.1, 5.15.2, 5.15.3, 5.16.0, 5.16.1, 5.16.2, 5.16.3, 5.17.0, 5.17.1, 5.17.2, 5.17.3, 5.2.0, 5.2.1, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.4.0, 5.4.1, 5.4.2, 5.4.3, 5.4.4, 5.4.5, 5.4.6, 5.4.7, 5.5.0, 5.5.1, 5.5.2, 5.5.3, 5.5.4, 5.5.5, 5.5.6, 5.6.0, 5.6.1, 5.6.2, 5.6.3, 5.6.4, 5.6.5, 5.7.0, 5.7.1, 5.7.2, 5.8.0, 5.8.1, 5.8.2, 5.8.3, 5.9.0, 5.9.1, 5.9.2, 5.9.3, 5.9.4, 5.9.5, v3.3.0, v3.3.1, v3.3.2, v3.4.0, v3.9.3, v3.9.4, v3.9.4.1, v3.9.4.2, v3.9.5, v3.9.5.1, v3.9.6, v3.9.7, v3.9.7-RC1, v3.9.7-RC2, v3.9.7-RC3
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.18.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.3.4",
"3.5.0",
"3.5.1",
"3.5.2",
"3.6.0",
"3.6.1",
"3.6.2",
"3.6.3",
"3.7.0",
"3.7.1",
"3.8.0",
"3.8.1",
"3.9.0",
"3.9.1",
"3.9.10",
"3.9.2",
"3.9.2.1",
"3.9.7.1",
"3.9.7.2",
"3.9.8",
"3.9.8-RC1",
"3.9.8-RC2",
"3.9.8-RC3",
"3.9.8.1",
"3.9.8.2",
"3.9.9",
"4.0.0",
"4.0.0-RC1",
"4.0.1",
"4.0.2",
"4.1.0",
"4.2.0",
"4.3.0",
"4.3.1",
"4.3.2",
"4.3.3",
"4.3.4",
"4.3.5",
"4.4.0",
"4.5.0",
"4.5.1",
"5.0.0",
"5.0.0-beta.1",
"5.0.0-rc.1",
"5.0.1",
"5.0.2",
"5.1.0",
"5.1.1",
"5.10.0",
"5.10.1",
"5.11.0",
"5.12.0",
"5.13.0",
"5.14.0",
"5.14.1",
"5.14.2",
"5.14.3",
"5.14.4",
"5.14.5",
"5.14.6",
"5.15.0",
"5.15.1",
"5.15.2",
"5.15.3",
"5.16.0",
"5.16.1",
"5.16.2",
"5.16.3",
"5.17.0",
"5.17.1",
"5.17.2",
"5.17.3",
"5.2.0",
"5.2.1",
"5.3.0",
"5.3.1",
"5.3.2",
"5.3.3",
"5.3.4",
"5.4.0",
"5.4.1",
"5.4.2",
"5.4.3",
"5.4.4",
"5.4.5",
"5.4.6",
"5.4.7",
"5.5.0",
"5.5.1",
"5.5.2",
"5.5.3",
"5.5.4",
"5.5.5",
"5.5.6",
"5.6.0",
"5.6.1",
"5.6.2",
"5.6.3",
"5.6.4",
"5.6.5",
"5.7.0",
"5.7.1",
"5.7.2",
"5.8.0",
"5.8.1",
"5.8.2",
"5.8.3",
"5.9.0",
"5.9.1",
"5.9.2",
"5.9.3",
"5.9.4",
"5.9.5",
"v3.3.0",
"v3.3.1",
"v3.3.2",
"v3.4.0",
"v3.9.3",
"v3.9.4",
"v3.9.4.1",
"v3.9.4.2",
"v3.9.5",
"v3.9.5.1",
"v3.9.6",
"v3.9.7",
"v3.9.7-RC1",
"v3.9.7-RC2",
"v3.9.7-RC3"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3271
- https://github.com/pressbooks/pressbooks/pull/2072
- https://github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8
- https://github.com/pressbooks/pressbooks
- https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept