Home / node-saml / node-saml / CVE-2023-40178
CVE-2023-40178: is it exploited, and which versions of node-saml are affected and fixed?
CVE-2023-40178 is a cryptographic signature not verified vulnerability in node-saml. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: @node-saml/node-saml before 4.0.5 (GitHub advisory GHSA-vx8m-6fhw-pccw). Fixed in 4.0.5 (GitHub advisory GHSA-vx8m-6fhw-pccw). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:36 UTC.
What is CVE-2023-40178?
@node-saml/node-saml's validatePostRequestAsync does not include checkTimestampsValidityError
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.
From the CVE record by GitHub_M, last updated October 2, 2024, 18:56 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| node-saml | node-saml | < 4.0.5 |
As the CVE record by GitHub_M states it, last updated October 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @node-saml/node-saml | < 4.0.5 | 4.0.5 | GHSA-vx8m-6fhw-pccw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 21, 2023. Summary: @node-saml/node-saml's validatePostRequestAsync does not include checkTimestampsValidityError.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| node saml project | node saml | before 4.0.5 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:16 UTC.
How severe is CVE-2023-40178?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | GitHub_M |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-40178 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, October 2, 2024)
- EPSS
- 0.49% probability of exploitation activity in the next 30 days, percentile 43.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/node-saml/node-saml/security/advisories/GHSA-vx8m-6fhw-pccw x_refsource_CONFIRM
- https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec x_refsource_MISC
- https://github.com/node-saml/node-saml/releases/tag/v4.0.5 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 9, 2023
- Published
- August 23, 2023, 20:15 UTC
- CVE record updated
- October 2, 2024, 18:56 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:16 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:36 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect node-saml?
- Dec 12, 2025CVE-2025-54369 node-saml: improper Neutralization of Alternate XSS Syntax
- Jul 28, 2025CVE-2025-54419 node-saml: authentication bypass (improper authentication)
- Oct 13, 2022CVE-2022-39300 node-saml: cryptographic signature not verified
Questions about CVE-2023-40178
Is CVE-2023-40178 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.49% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of node-saml are affected by CVE-2023-40178?
@node-saml/node-saml before 4.0.5, per the GitHub advisory GHSA-vx8m-6fhw-pccw. The tables above give every range the sources list.
Which version fixes CVE-2023-40178?
4.0.5, per the GitHub advisory GHSA-vx8m-6fhw-pccw. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-40178?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-40178?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.