原始 OSV JSON{
"id": "GHSA-8p5p-ff7x-hw7q",
"aliases": [
"CVE-2018-3747"
],
"details": "Versions of `public` prior to 0.1.4 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.\n\n\n## Recommendation\n\nUpgrade to version 0.1.4 or later.",
"summary": "Cross-Site Scripting in public",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.1.4"
}
]
}
],
"package": {
"name": "public",
"ecosystem": "npm"
}
}
],
"modified": "2021-09-07T20:23:14Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"published": "2018-10-10T17:27:58Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-3747",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/316346",
"type": "WEB"
},
{
"url": "https://hackerone.com/reports/329950",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-8p5p-ff7x-hw7q",
"type": "ADVISORY"
},
{
"url": "https://www.npmjs.com/advisories/1000",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:26:09Z"
}
}