GHSA-5325-xw5m-phm3

Suggest an improvement
Source
https://github.com/advisories/GHSA-5325-xw5m-phm3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-5325-xw5m-phm3/GHSA-5325-xw5m-phm3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5325-xw5m-phm3
Aliases
Published
2021-08-25T20:55:56Z
Modified
2023-11-08T04:06:26.105627Z
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
Cross-site Scripting in ammonia
Details

An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "github_reviewed_at": "2021-08-18T21:28:38Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

crates.io / ammonia

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.0

crates.io / ammonia

Package

Affected ranges

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