Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. phoenix_html
  4. ›
  5. CVE-2021-46871

CVE-2021-46871: phoenix_html allows Cross-site Scripting in HEEx class attributes

January 10, 2023 (updated April 9, 2025)

tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes

References

  • github.com/advisories/GHSA-5g2h-9x5v-5h3x
  • github.com/advisories/GHSA-j3gg-r6gp-95q2
  • github.com/phoenixframework/phoenix_html
  • github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620
  • nvd.nist.gov/vuln/detail/CVE-2021-46871

Code Behaviors & Features

Detect and mitigate CVE-2021-46871 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 3.0.4

Fixed versions

  • 3.0.4

Solution

Upgrade to version 3.0.4 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/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')

Source file

npm/phoenix_html/CVE-2021-46871.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:10 +0000.