原始 OSV JSON{
"id": "GHSA-5325-xw5m-phm3",
"aliases": [
"CVE-2021-38193"
],
"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.",
"summary": "Cross-site Scripting in ammonia",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.0"
}
]
}
],
"package": {
"name": "ammonia",
"ecosystem": "crates.io"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.3"
}
]
}
],
"package": {
"name": "ammonia",
"ecosystem": "crates.io"
}
}
],
"modified": "2021-08-18T21:28:38Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"published": "2021-08-25T20:55:56Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38193",
"type": "ADVISORY"
},
{
"url": "https://github.com/rust-ammonia/ammonia/pull/142",
"type": "WEB"
},
{
"url": "https://github.com/rust-ammonia/ammonia",
"type": "PACKAGE"
},
{
"url": "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ammonia/RUSTSEC-2021-0074.md",
"type": "WEB"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0074.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-08-08T06:15:00Z",
"github_reviewed_at": "2021-08-18T21:28:38Z"
}
}