CVE-2021-41580
Last modified
CVE-2021-41580 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. The passport-oauth2 package before 1.6.1 for Node.js mishandles the error condition of failure to obtain an access token. This is exploitable in certain use cases where an OAuth identity provider uses an HTTP 200 status code for authentication-failure error reports, and an application grants authorization upon simply receiving the access token (i.e., does not try to use the token). EPSS estimates a 1.26% chance of exploitation in the next 30 days.
Description
The passport-oauth2 package before 1.6.1 for Node.js mishandles the error condition of failure to obtain an access token. This is exploitable in certain use cases where an OAuth identity provider uses an HTTP 200 status code for authentication-failure error reports, and an application grants authorization upon simply receiving the access token (i.e., does not try to use the token). NOTE: the passport-oauth2 vendor does not consider this a passport-oauth2 vulnerability
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Passportjs | Passport-Oauth2 | < 1.6.1 |
References
- https://github.com/jaredhanson/passport-oauth2/commit/8e3bcdff145a2219033bd782fc517229fe3e05eaPatch, Third Party Advisory
- https://github.com/jaredhanson/passport-oauth2/compare/v1.6.0...v1.6.1Patch, Third Party Advisory
- https://github.com/jaredhanson/passport-oauth2/pull/144Patch, Third Party Advisory
- https://github.com/jaredhanson/passport-oauth2/commit/8e3bcdff145a2219033bd782fc517229fe3e05eaPatch, Third Party Advisory
- https://github.com/jaredhanson/passport-oauth2/compare/v1.6.0...v1.6.1Patch, Third Party Advisory
- https://github.com/jaredhanson/passport-oauth2/pull/144Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-41580?
How severe is CVE-2021-41580?
How do I fix CVE-2021-41580?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-41574Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-41575Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-41576Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-41578mySCADA myDESIGNER 8.20.0 and below allows Directory Travers…7.8
- CVE-2021-41579LCDS LAquis SCADA through 4.3.1.1085 is vulnerable to a cont…7.8
- CVE-2021-4158A NULL pointer dereference issue was found in the ACPI code …6
- CVE-2021-41581x509_constraints_parse_mailbox in lib/libcrypto/x509/x509_co…5.5
- CVE-2021-41583vpn-user-portal (aka eduVPN or Let's Connect!) before 2.3.14…6.5
- CVE-2021-41584Gradle Enterprise before 2021.1.3 can allow unauthorized vie…7.5
- CVE-2021-41585Improper Input Validation vulnerability in accepting socket …7.5
- CVE-2021-41586In Gradle Enterprise before 2021.1.3, an attacker with the a…7.5
- CVE-2021-41587In Gradle Enterprise before 2021.1.3, an attacker with the a…7.5
Are you affected by CVE-2021-41580?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
