Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pressbooks/pressbooks
  4. ›
  5. CVE-2021-3271

CVE-2021-3271: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

March 29, 2021

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.

References

  • github.com/advisories/GHSA-9652-78hp-w58c
  • github.com/pressbooks/pressbooks
  • github.com/pressbooks/pressbooks/commit/941a8c5eaeacea5eb211b54ee55bc0348139cbd8
  • github.com/pressbooks/pressbooks/pull/2072
  • nvd.nist.gov/vuln/detail/CVE-2021-3271
  • www.gosecure.net/blog/2021/02/16/cve-2021-3271-pressbooks-stored-cross-site-scripting-proof-of-concept/

Code Behaviors & Features

Detect and mitigate CVE-2021-3271 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.18.0

Fixed versions

  • 5.18.0

Solution

Upgrade to version 5.18.0 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/pressbooks/pressbooks/CVE-2021-3271.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.