{"url":"http://public2.vulnerablecode.io/api/packages/478980?format=json","purl":"pkg:composer/pressbooks/pressbooks@5.4.1","type":"composer","namespace":"pressbooks","name":"pressbooks","version":"5.4.1","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"5.18.0","latest_non_vulnerable_version":"5.18.0","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/43826?format=json","vulnerability_id":"VCID-u1t3-r2zn-57hn","summary":"Stored cross-site scripting in PressBooks\nPressBooks 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.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3271","reference_id":"","reference_type":"","scores":[{"value":"0.00411","scoring_system":"epss","scoring_elements":"0.61659","published_at":"2026-05-29T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3271"},{"reference_url":"https://github.com/pressbooks/pressbooks","reference_id":"","reference_type":"","scores":[{"value":"4.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/pressbooks/pressbooks"},{"reference_url":"https://github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8","reference_id":"","reference_type":"","scores":[{"value":"4.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8"},{"reference_url":"https://github.com/pressbooks/pressbooks/pull/2072","reference_id":"","reference_type":"","scores":[{"value":"4.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/pressbooks/pressbooks/pull/2072"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3271","reference_id":"","reference_type":"","scores":[{"value":"4.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3271"},{"reference_url":"https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept","reference_id":"","reference_type":"","scores":[{"value":"4.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept"},{"reference_url":"https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept/","reference_id":"CVE-2021-3271-PRESSBOOKS-STORED-CROSS-SITE-SCRIPTING-PROOF-OF-CONCEPT","reference_type":"","scores":[],"url":"https://www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept/"},{"reference_url":"https://github.com/advisories/GHSA-9652-78hp-w58c","reference_id":"GHSA-9652-78hp-w58c","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-9652-78hp-w58c"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/77768?format=json","purl":"pkg:composer/pressbooks/pressbooks@5.18.0","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/pressbooks/pressbooks@5.18.0"}],"aliases":["CVE-2021-3271","GHSA-9652-78hp-w58c"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-u1t3-r2zn-57hn"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/pressbooks/pressbooks@5.4.1"}