{"id":"GHSA-9652-78hp-w58c","aliases":["CVE-2021-3271"],"title":"Stored cross-site scripting in PressBooks","description":"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.","severity":"medium","score":4.8,"published":"2021-03-29T20:07:39.000Z","modified":"2024-02-17T05:31:34.822Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"pressbooks/pressbooks","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"],"fixed":["5.18.0"]}],"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"],"sources":[{"name":"OSV","id":"GHSA-9652-78hp-w58c","modified":"2024-02-17T05:31:34.822481Z","url":"https://osv.dev/vulnerability/GHSA-9652-78hp-w58c"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8}]}