GHSA-388g-jwpg-x6j4

Suggest an improvement
Source
https://github.com/advisories/GHSA-388g-jwpg-x6j4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-388g-jwpg-x6j4/GHSA-388g-jwpg-x6j4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-388g-jwpg-x6j4
Downstream
Published
2020-09-11T21:20:14Z
Modified
2021-09-28T17:00:22Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Cross-Site Scripting in swagger-ui
Details

Versions of swagger-ui prior to 3.0.13 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize YAML files imported from URLs or copied-pasted. This may allow attackers to execute arbitrary JavaScript.

Recommendation

Upgrade to version 3.0.13 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:43:03Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / swagger-ui

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-388g-jwpg-x6j4/GHSA-388g-jwpg-x6j4.json"