CVE-2021-3271
MEDIUM 4.8CVSS 3.1Stored 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.
- Published
- 18 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-9652-78hp-w58c
- Sources
- NVDJSONOSV GHSA-9652-78hp-w58cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pressbooks | pressbookscpe:2.3:a:pressbooks:pressbooks:*:*:*:*:*:*:*:* |
<= 5.17.3 | |
| OSV | Packagist | pressbooks/pressbooks | < 5.18.0 | 5.18.0 |
References
- https://github.com/pressbooks/pressbooks · Third Party Advisory, WEB
- https://github.com/pressbooks/pressbooks/pull/2072 · Exploit, Third Party Advisory, WEB
- https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3271 · ADVISORY
- https://github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 18 Feb 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Mar 2021)