原始 OSV JSON{
"id": "GHSA-cg48-9hh2-x6mx",
"aliases": [],
"details": "Versions of `preact` 10.x on prerelease tags alpha and beta prior to 10.0.0-beta.1 are vulnerable to HTML Injection. Due to insufficient input validation the package allows attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This requires user input parsed with `JSON.parse()` to be passed directly into JSX without sanitization.\n\n\n## Recommendation\n\nUpgrade to version 10.0.0-beta.1.",
"summary": "HTML Injection in preact",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "10.0.0-alpha.0"
},
{
"fixed": "10.0.0-beta.1"
}
]
}
],
"package": {
"name": "preact",
"ecosystem": "npm"
},
"database_specific": {
"last_known_affected_version_range": "<= 10.0.0-beta.0"
}
}
],
"modified": "2021-09-27T20:53:56Z",
"severity": [],
"published": "2020-09-02T18:28:58Z",
"references": [
{
"url": "https://github.com/developit/preact/pull/1528",
"type": "WEB"
},
{
"url": "https://github.com/developit/preact",
"type": "PACKAGE"
},
{
"url": "https://github.com/developit/preact/releases/tag/10.0.0-beta.1",
"type": "WEB"
},
{
"url": "https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/advisories/835",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-74"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-08-31T18:37:35Z"
}
}