CVE-2022-25896
MEDIUM 4.8CVSS 3.1Passport vulnerable to session regeneration when a users logs in or out
This affects the package passport before 0.6.0. When a user logs in or logs out, the session is regenerated instead of being closed.
- Published
- 1 Jul 2022
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-384
- Also known as
- GHSA-v923-w3x8-wh69SNYK-JS-PASSPORT-2840631
- Sources
- NVDJSONOSV GHSA-v923-w3x8-wh69JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | passport_project | passportcpe:2.3:a:passport_project:passport:*:*:*:*:*:node.js:*:* |
< 0.6.0 | 0.6.0 |
| OSV | npm | passport | < 0.6.0 | 0.6.0 |
References
- https://github.com/jaredhanson/passport/commit/7e9b9cf4d7be02428e963fc729496a45baeea608 · Patch, Third Party Advisory, WEB
- https://github.com/jaredhanson/passport/pull/900 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-PASSPORT-2840631 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25896 · ADVISORY
- https://github.com/jaredhanson/passport · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Jul 2022)