原始 OSV JSON{
"id": "GHSA-w4v7-hwx7-9929",
"aliases": [
"CVE-2021-23784"
],
"details": "This affects the package tempura before 0.4.0. If the input to the esc function is of type object (i.e an array) it is returned without being escaped/sanitized, leading to a potential Cross-Site Scripting vulnerability.",
"summary": "Cross-site Scripting in tempura",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.4.0"
}
]
}
],
"package": {
"name": "tempura",
"ecosystem": "npm"
}
}
],
"modified": "2021-11-08T17:49:56Z",
"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-11-08T17:50:10Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23784",
"type": "ADVISORY"
},
{
"url": "https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b",
"type": "WEB"
},
{
"url": "https://github.com/lukeed/tempura",
"type": "PACKAGE"
},
{
"url": "https://github.com/lukeed/tempura/releases/tag/v0.4.0",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-11-03T18:15:00Z",
"github_reviewed_at": "2021-11-04T16:59:09Z"
}
}