{"schemaVersion":3,"id":"CVE-2026-40345","aliases":["CGA-9m3r-qx24-w8gm","CGA-c6q6-4fgp-h74p","CGA-f86r-72mg-45fq","CGA-gh39-8cg3-pwfp","CGA-j56h-v965-2hxp","CGA-jqmh-xpjv-7hj3","CGA-vj2x-g6wf-6rcg","CGA-vxjp-mr9j-w5ff","GHSA-ggr8-5vv4-36mx","CGA-23xj-64mw-mjf8","CGA-2899-h3rc-jg7g","CGA-2mqj-g9q5-mpc8","CGA-3vjj-mqhf-5r32","CGA-5j3g-g3qp-gg6v","CGA-62mg-w9rx-c95p","CGA-7vpj-6jhr-gm8g","CGA-86vv-q7rh-9248","CGA-8ggc-cqxw-8pp2","CGA-9hjc-g354-jqjw","CGA-9mhc-c7c4-3fcx","CGA-cg7w-5m9r-2vmj","CGA-cq74-hf8f-cf7w","CGA-fcw7-ggx5-vgg2","CGA-h425-mh2x-f786","CGA-hgmr-p78q-h5gf","CGA-hjhr-7672-r2hf","CGA-hmwh-4g4c-w8jf","CGA-hp34-cc8v-p7m5","CGA-hq4f-2chc-3hv6","CGA-jh6f-3mgw-86w5","CGA-jjr6-m923-2xmp","CGA-p642-p685-wcv8","CGA-pf92-3w2f-95mr","CGA-pvhp-r5h4-5vg5","CGA-qrx6-3jw3-mvpr","CGA-rcf3-3g97-pw9x","CGA-v5r3-g6m4-pgm8","CGA-v8hr-rm98-95wp","CGA-x2cj-xggh-mjg7"],"status":"published","duplicateOf":null,"title":null,"description":"deepmerge-ts is a typescript library providing functionality to deep merging of javascript objects. Prior to 8.0.0, the deepmerge, deepmergeCustom, deepmergeInto, and deepmergeIntoCustom APIs do not track visited objects or object pairs when recursively merging records. When two input values contain self-references at the same property path, the merge logic repeatedly revisits the same pair until Node.js raises RangeError: Maximum call stack size exceeded. Applications that merge attacker-controlled recursive object graphs can synchronously crash the affected process or cause repeated worker restarts. Plain JSON input alone cannot create the recursive graph required to trigger the issue. This issue is fixed in version 8.0.0.","dates":{"published":"2026-08-20T16:33:52.702Z","modified":"2026-08-21T16:28:15.340Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00524,"percentile":0.43522,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.05700000000000002,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00467},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00524,"percentile":0.43522}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00467,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00524,"percentile":0.43522}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"chainguard","product":"authentik-2025.12","name":"authentik-2025.12","label":"authentik-2025.12","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-2025.12","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-2026.2","name":"authentik-2026.2","label":"authentik-2026.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-2026.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-2026.5","name":"authentik-2026.5","label":"authentik-2026.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-2026.5","purlType":"apk","versions":[{"text":"< 2026.5.6-r15","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2026.5.6-r15","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-fips-2025.12","name":"authentik-fips-2025.12","label":"authentik-fips-2025.12","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-fips-2025.12","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-fips-2026.2","name":"authentik-fips-2026.2","label":"authentik-fips-2026.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-fips-2026.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-fips-2026.5","name":"authentik-fips-2026.5","label":"authentik-fips-2026.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-fips-2026.5","purlType":"apk","versions":[{"text":"< 2026.5.6-r16","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2026.5.6-r16","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-3","name":"langfuse-3","label":"langfuse-3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-3","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-3-compat","name":"langfuse-3-compat","label":"langfuse-3-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-3-compat","purlType":"apk","versions":[{"text":"< 3.225.7-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.7-r6","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-3-worker","name":"langfuse-3-worker","label":"langfuse-3-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-3-worker","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-4","name":"langfuse-4","label":"langfuse-4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-4","purlType":"apk","versions":[{"text":"< 4.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.16.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-4-worker","name":"langfuse-4-worker","label":"langfuse-4-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-4-worker","purlType":"apk","versions":[{"text":"< 4.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.16.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-fips-3","name":"langfuse-fips-3","label":"langfuse-fips-3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-fips-3","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-fips-3-worker","name":"langfuse-fips-3-worker","label":"langfuse-fips-3-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-fips-3-worker","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-fips-4","name":"langfuse-fips-4","label":"langfuse-fips-4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-fips-4","purlType":"apk","versions":[{"text":"< 4.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.16.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-fips-4-worker","name":"langfuse-fips-4-worker","label":"langfuse-fips-4-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-fips-4-worker","purlType":"apk","versions":[{"text":"< 4.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.16.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"langfuse-3","name":"langfuse-3","label":"langfuse-3","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/langfuse-3","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"langfuse-3-compat","name":"langfuse-3-compat","label":"langfuse-3-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/langfuse-3-compat","purlType":"apk","versions":[{"text":"< 3.225.7-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.7-r6","eol":null,"hubHref":null},{"vendor":"wolfi","product":"langfuse-3-worker","name":"langfuse-3-worker","label":"langfuse-3-worker","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/langfuse-3-worker","purlType":"apk","versions":[{"text":"< 3.225.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.225.5-r0","eol":null,"hubHref":null},{"vendor":"Npm","product":"deepmerge-ts","name":"deepmerge-ts","label":"deepmerge-ts","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/deepmerge-ts","purlType":"npm","versions":[{"text":"< 8.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.0.0","eol":null,"hubHref":null},{"vendor":"rebeccastevens","product":"deepmerge-ts","name":"deepmerge-ts","label":"deepmerge-ts","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 8.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.0.0","eol":null,"hubHref":"/vendor/rebeccastevens/deepmerge-ts"}],"affectedCount":22,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx","label":"github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/pull/707","label":"github.com/RebeccaStevens/deepmerge-ts/pull/707","hostname":"github.com","tags":["X Refsource MISC","FIX"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a","label":"github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a","hostname":"github.com","tags":["X Refsource MISC","FIX"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0","label":"github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40345.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40345.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40345","label":"nvd.nist.gov/vuln/detail/CVE-2026-40345","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts","label":"github.com/RebeccaStevens/deepmerge-ts","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-Q983-RG4W-2RGG"]},"timeline":[{"kind":"published","date":"2026-08-20T16:33:52.702Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-21T16:28:15.340Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T20:11:55.661Z","stale":false,"partial":false}}