CVE-2023-40178 @node-saml/node-saml's validatePostRequestAsync does not include checkTimestampsValidityError

Medium 5.3 Published Updated

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.

Weakness: CWE-613, CWE-347

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.

PackageAffectedFixed in
@node-saml/node-saml npmAll versions4.0.5
@node-saml/node-saml npmAll versions4.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.

Sources

Also known as GHSA-vx8m-6fhw-pccw.

Is CVE-2023-40178 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free