Skip to content
Fencer Intel
medium 4.3

GHSA-x9p2-fxq6-2m5f json

Reverse Tabnapping in swagger-ui

published 7y ago modified 5y ago

cvss
4.3
version 3.1, GitHub
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

Versions of `swagger-ui` prior to 3.18.0 are vulnerable to [Reverse Tabnapping](https://www.owasp.org/index.php/Reverse_Tabnabbing). The package uses `target='_blank'` in anchor tags, allowing attackers to access `window.opener` for the original page. This is commonly used for phishing attacks.

## Recommendation

Upgrade to version 3.18.0 or later.

Patch / fix

Is GHSA-x9p2-fxq6-2m5f in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CVSS scores

assigned by version score vector
GitHub 3.1 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
npm swagger-ui
<3.18.0
3.18.0

Classification

Weakness
  • CWE-1022 Use of Web Link to Untrusted Target with window.opener Access

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.