CVE-2021-46871
JSON

6.1medium

phoenix_html allows Cross-site Scripting in HEEx class attributes

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.45% (higher than 31% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5g2h-9x5v-5h3xGHSA-j3gg-r6gp-95q2

Description

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
phoenix_html (npm)before 3.0.4GitHub Advisory Database
phoenix_html (Hex)before 3.0.4GitHub Advisory Database
phoenixframework phoenix_htmlbefore 3.0.4NVD

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium rating
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

GitHub Advisory Database

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

GitHub Advisory Database

The class attribute was not protected against XSS attacks when using HEEx.

NVD (es)

tag.ex en Phoenix Phoenix.HTML (también conocido como phoenix_html) anterior a 3.0.4 permite XSS en atributos de clase HEEx.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46871 changed 2025-04-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-5g2h-9x5v-5h3x changed 2026-09-10CC-BY-4.0
GitHub Advisory DatabaseGHSA-j3gg-r6gp-95q2 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-46871 changed 2026-06-17Public domain