CVE-2021-3271
Stored cross-site scripting in PressBooks
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
4.8
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.
- Record
CVE-2021-3271- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 3.5 Low
AV:N/AC:M/Au:S/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-3271- Updated
- 2026-11-02
EUVDEUVD-2021-0637 No score
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.
- Record
EUVD-2021-0637- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-9652-78hp-w58c
4.8
Stored cross-site scripting in PressBooks
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.
- Record
GHSA-9652-78hp-w58c- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
4.8
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.
- Record
CVE-2021-3271- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVGHSA-9652-78hp-w58c
4.8
Stored cross-site scripting in PressBooks
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.
- Record
GHSA-9652-78hp-w58c- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pressbooks/pressbooksPackagist |
before 5.18.0 | 5.18.0 |
pressbooks/pressbooksPackagist |
before 5.18.0, plus listed versions 2.3.43.5.03.5.13.5.23.6.0 Show 45 moreShow less3.6.13.6.23.6.33.7.03.7.13.8.03.8.13.9.03.9.13.9.103.9.23.9.2.13.9.7.13.9.7.23.9.83.9.8-RC13.9.8-RC23.9.8-RC33.9.8.13.9.8.23.9.94.0.04.0.0-RC14.0.14.0.24.1.04.2.04.3.04.3.14.3.24.3.34.3.44.3.54.4.04.5.04.5.15.0.05.0.0-beta.15.0.0-rc.15.0.15.0.25.1.05.1.15.10.05.10.1 |
5.18.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3271 is a medium vulnerability (CVSS 4.8) in Pressbooks, published January 22, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in pressbooks/pressbooks 5.18.0.
References
github.com/pressbooks/pressbooks/pull/2072
github.com/pressbooks/pressbooks
gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept
nvd.nist.gov/vuln/detail/CVE-2021-3271
github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8
github.com/advisories/GHSA-9652-78hp-w58c
Left out here: 78 versions. The JSON record has them.