Medium
Security advisory
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-46871
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:04 UTC · Revision 1
Source evidence
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
osv:CVE-2021-46871
Complete source record
{
"id": "d19a48c14d9722ad7809afc8896d05ed99a0d6a4e545805fab117118417320f0",
"url": "https://osv.dev/vulnerability/CVE-2021-46871",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-46871",
"summary": "tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.",
"evidence": "osv:CVE-2021-46871",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-46871",
"aliases": [
"CVE-2021-46871",
"GHSA-5g2h-9x5v-5h3x",
"GHSA-j3gg-r6gp-95q2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/phoenixframework/phoenix_html",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "926a7e9da40df9b9da4eaec57a97641fd56729c2"
},
{
"fixed": "62a0139fb716bcdce697f6221244bd81d321d620"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.0.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "62a0139fb716bcdce697f6221244bd81d321d620"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v3.0.3",
"v3.0.2",
"v3.0.0",
"v2.14.2",
"v2.14.1",
"v.2.14.1",
"v2.14.0",
"v2.13.3",
"v2.13.2",
"v2.13.1",
"v2.13.0",
"v2.12.0",
"v2.11.2",
"v2.11.1",
"v2.11.0",
"v2.10.4",
"v2.10.2",
"v2.10.1",
"v2.10.0",
"v2.9.3",
"v2.9.2",
"v2.9.1",
"v2.9.0",
"v2.8.0",
"v2.7.0",
"v2.6.0",
"v2.5.1",
"v2.5.0",
"v2.4.0",
"v2.3.1",
"v2.3.0",
"v2.2.1",
"v2.2.0",
"v2.1.2",
"v2.1.0",
"v2.0.0",
"v1.4.0",
"v1.3.0",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.1",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46871.json"
}
}
],
"modified": "2026-10-20T10:55:11.818072971Z",
"provider": "osv",
"references": [
"https://github.com/advisories/GHSA-j3gg-r6gp-95q2",
"https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-46871",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387057,
"published_at": "2023-01-10T06:15:09.87+00:00"
}