CVE-2023-40178 @node-saml/node-saml's validatePostRequestAsync does not include checkTimestampsValidityError
Attackers can reuse expired SAML LogoutRequests to forcibly log out users, bypassing timestamp validation checks in the node-saml library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40178?
CVE-2023-40178 is a medium-severity vulnerability in node-saml, published on 23 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Node-SAML is a SAML library not dependent on any frameworks that runs in Node. The lack of checking of current timestamp allows a LogoutRequest XML to be reused multiple times even when the current time is past the NotOnOrAfter. This could impact the user where they would be logged out from an expired LogoutRequest. In bigger contexts, if LogoutRequests are sent out in mass to different SPs, this could impact many users on a large scale. This issue was patched in version 4.0.5.
Which versions are affected by CVE-2023-40178?
2 open source packages ship an affected version, including @node-saml/node-saml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@node-saml/node-saml npm | All versions | 4.0.5 |
@node-saml/node-saml npm | All versions | 4.0.5 |
Products include Node Saml Project Node Saml.
How do I fix CVE-2023-40178?
Upgrade @node-saml/node-saml to 4.0.5 or later.
Is CVE-2023-40178 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40178 exists.
Other vulnerabilities in node-saml
Sources
Also known as GHSA-vx8m-6fhw-pccw.