GHSA-5g2h-9x5v-5h3x

Suggest an improvement
Source
https://github.com/advisories/GHSA-5g2h-9x5v-5h3x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-5g2h-9x5v-5h3x/GHSA-5g2h-9x5v-5h3x.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5g2h-9x5v-5h3x
Aliases
Published
2023-01-10T06:30:25Z
Modified
2025-12-04T23:58:20.405165Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
phoenix_html allows Cross-site Scripting in HEEx class attributes
Details

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

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2023-01-10T22:16:31Z",
    "severity": "MODERATE",
    "nvd_published_at": "2023-01-10T06:15:00Z",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

npm / phoenix_html

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.4

Database specific

source

"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-5g2h-9x5v-5h3x/GHSA-5g2h-9x5v-5h3x.json"

Hex / phoenix_html

Package

Name
phoenix_html
Purl
pkg:hex/phoenix_html

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.4

Affected versions

1.*

1.0.0
1.0.1
1.1.0
1.2.0
1.2.1
1.3.0
1.4.0

2.*

2.0.0-dev
2.0.0
2.0.1
2.1.0
2.1.1
2.1.2
2.2.0
2.3.0
2.3.1
2.4.0-dev
2.4.0
2.5.0
2.5.1
2.6.0
2.6.1
2.6.2
2.7.0-dev
2.7.0
2.8.0
2.9.0
2.9.1
2.9.2
2.9.3
2.10.0
2.10.1
2.10.2
2.10.3
2.10.4
2.10.5
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.13.1
2.13.2
2.13.3
2.13.4
2.14.0
2.14.1
2.14.2
2.14.3

3.*

3.0.0
3.0.1
3.0.2
3.0.3

Database specific

source

"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-5g2h-9x5v-5h3x/GHSA-5g2h-9x5v-5h3x.json"