Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1ocmd4LTdqNnYteGo4Ms0hSw
Reflected cross-site scripting (XSS) vulnerability
This security advisory relates to a capability for an attacker to exploit a reflected cross-site scripting vulnerability when using the @keystone-6/auth
package.
Impact
The vulnerability can impact users of the administration user interface when following an untrusted link to the signin
or init
page.
This is a targeted attack and may present itself in the form of phishing and or chained in conjunction with some other vulnerability.
Vulnerability mitigation
Please upgrade to @keystone-6/auth >= 1.0.2
, where this vulnerability has been closed.
If you are using @keystone-next/auth
, we strongly recommend you upgrade to @keystone-6
.
Workarounds
If for some reason you cannot upgrade the dependencies in software, you could alternatively
- disable the administration user interface, or
- if using a reverse-proxy, strip query parameters when accessing the administration interface
References
https://owasp.org/www-community/attacks/xss/
Thanks to Shivansh Khari (@Shivansh-Khari) for discovering and reporting this vulnerability
Permalink: https://github.com/advisories/GHSA-hrgx-7j6v-xj82JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocmd4LTdqNnYteGo4Ms0hSw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: about 1 year ago
CVSS Score: 7.1
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
Identifiers: GHSA-hrgx-7j6v-xj82, CVE-2022-0087
References:
- https://github.com/keystonejs/keystone/security/advisories/GHSA-hrgx-7j6v-xj82
- https://nvd.nist.gov/vuln/detail/CVE-2022-0087
- https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38
- https://huntr.dev/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e
- https://github.com/advisories/GHSA-hrgx-7j6v-xj82
Blast Radius: 16.1
Affected Packages
npm:@keystone-next/auth
Dependent packages: 1Dependent repositories: 184
Downloads: 209 last month
Affected Version Ranges: <= 37.0.0
No known fixed version
All affected versions: 1.0.0, 2.0.0, 2.0.1, 3.0.0, 4.0.0, 5.0.0, 5.0.1, 6.0.0, 7.0.0, 8.0.0, 9.0.0, 10.0.0, 10.0.1, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 16.0.1, 17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 23.0.0, 23.0.1, 24.0.0, 25.0.0, 26.0.0, 27.0.0, 28.0.0, 28.0.1, 29.0.0, 30.0.0, 31.0.0, 32.0.0, 33.0.0, 34.0.0, 35.0.0, 36.0.0, 37.0.0
npm:@keystone-6/auth
Dependent packages: 4Dependent repositories: 110
Downloads: 95,995 last month
Affected Version Ranges: < 1.0.2
Fixed in: 1.0.2
All affected versions: 1.0.0, 1.0.1
All unaffected versions: 1.0.2, 2.0.0, 3.0.0, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 6.0.0, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 8.0.0