{"id":"CVE-2023-40178","published":"2023-08-23T20:15:23Z","modified":"2024-10-02T18:56:08Z","title":"@node-saml/node-saml's validatePostRequestAsync does not include checkTimestampsValidityError","vendor":"node-saml","product":"node-saml","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00491,"percentile":0.43068,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/node-saml/node-saml/security/advisories/GHSA-vx8m-6fhw-pccw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-saml/node-saml/releases/tag/v4.0.5","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":8.61},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"node-saml","affectedVersions":[{"vendor":"node-saml","product":"node-saml","versions":["< 4.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-02T18:49:43.816412Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@node-saml/node-saml","vulnerableRanges":["<4.0.5"],"patched":["4.0.5"],"from":["GHSA-vx8m-6fhw-pccw"],"provenance":"source"}],"summary":{"text":"The validatePostRequestAsync function in the node-saml SAML library, which runs in Node.js, does not check the timestamp validity of LogoutRequest XML, so expired requests are still accepted. An attacker with network access and no authentication or user interaction can replay a LogoutRequest multiple times after its NotOnOrAfter time has passed, logging affected users out.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:48Z"},"euvd":{"id":"EUVD-2023-2365","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-saml-cve-2022-39300","parents":[{"from":"CVE-2022-39300","to":"CVE-2023-40178","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec"],"basis":"shared function","functions":["SAML"]}]}],"children":[{"from":"CVE-2023-40178","to":"CVE-2025-54369","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]}]},{"from":"CVE-2023-40178","to":"CVE-2025-54419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]}]}],"packageHistory":[{"cve":"CVE-2022-39299","published":"2022-10-12","fixed":"4.0.0-beta.5","kev":false,"link":{"from":"CVE-2022-39299","to":"CVE-2023-40178","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@node-saml/node-saml","fromFixed":"4.0.0-beta.5","toFixed":"4.0.5","daysApart":315}]}},{"cve":"CVE-2023-40178","published":"2023-08-23","fixed":"4.0.5","kev":false},{"cve":"CVE-2025-54369","published":"2025-12-12","fixed":"5.1.0","kev":false},{"cve":"CVE-2025-54419","published":"2025-07-28","fixed":"5.1.0","kev":false}],"package":"npm:@node-saml/node-saml"}}