# GHSA-mfcp-34xw-p57x: Authentication Bypass in saml2-js

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T21:20:52.000Z
- Modified: 2021-09-29T20:12:42.000Z
- Weaknesses: CWE-287

## Description

Versions of `saml2-js` prior to 2.0.5 are vulnerable to an Authentication Bypass. The package fails to enforce the assertion conditions for encrypted assertions, which may allow an attacker to reuse encrypted assertion tokens indefinitely.


## Recommendation

Upgrade to version 2.0.5 or later.

(As written by GitHub Advisory Database.)

## Affected

- saml2-js (npm): before 2.0.5

## References

- <https://github.com/Clever/saml2/pull/190> (web)
- <https://github.com/Clever/saml2/commit/ae0da4d0a0ea682a737be481e3bd78798be405c0> (web)
- <https://github.com/Clever/saml2> (package)
- <https://snyk.io/vuln/SNYK-JS-SAML2JS-474637> (web)
- <https://www.npmjs.com/advisories/1222> (web)

## Sources

- GitHub Advisory Database: [GHSA-mfcp-34xw-p57x](https://github.com/advisories/GHSA-mfcp-34xw-p57x), CC-BY-4.0, modified 2021-09-29

---

Page: https://cve.day/GHSA-mfcp-34xw-p57x · Whole record: https://cve.day/GHSA-mfcp-34xw-p57x.json · Rebuilt by cve.day 2026-11-25T22:56:45.939Z
