{"id":"JLSEC-2026-1948","summary":"A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user...","details":"A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user-provided signatures, potentially leaking timing information proportional to the number of matching bytes. Under certain threat models where high-resolution timing measurements are possible, this behavior could be exploited as a timing oracle to infer HMAC values.\n\nNode.js already provides timing-safe comparison primitives used elsewhere in the codebase, indicating this is an oversight rather than an intentional design decision.\n\nThis vulnerability affects **20.x, 22.x, 24.x, and 25.x**.","modified":"2026-12-02T15:58:37.593531338Z","published":"2026-12-02T15:31:00.452Z","upstream":["CVE-2026-21713","EUVD-2026-17174","GHSA-6r7g-3mm3-fhw7"],"database_specific":{"sources":[{"published":"2026-03-30T20:16:19.397Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-21713","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21713","database_specific":{"status":"Analyzed"},"affected":{"nodejs:node.js":["\u003c= 20.20.1","\u003e= 22.0.0, \u003c= 22.22.1","\u003e= 24.0.0, \u003c= 24.14.0","\u003e= 25.0.0, \u003c= 25.8.1"]},"id":"CVE-2026-21713","imported":"2026-12-02T14:45:39.968Z","modified":"2026-08-19T13:36:43.997Z"},{"html_url":"https://github.com/advisories/GHSA-6r7g-3mm3-fhw7","id":"GHSA-6r7g-3mm3-fhw7","imported":"2026-12-02T14:48:56.278Z","modified":"2026-05-10T15:31:17Z","published":"2026-03-30T21:31:04Z","url":"https://api.github.com/advisories/GHSA-6r7g-3mm3-fhw7"},{"html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-17174","id":"EUVD-2026-17174","imported":"2026-12-02T14:45:41.718Z","modified":"2026-05-10T13:17:50Z","published":"2026-03-30T19:07:28Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-17174"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-6r7g-3mm3-fhw7"},{"type":"WEB","url":"https://nodejs.org/en/blog/vulnerability/march-2026-security-releases"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21713"}],"affected":[{"package":{"name":"NodeJS_16_jll","ecosystem":"Julia","purl":"pkg:julia/NodeJS_16_jll?uuid=a4b94fbf-73f5-58ff-888d-48a8396e17f6"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1948.json"}},{"package":{"name":"NodeJS_18_jll","ecosystem":"Julia","purl":"pkg:julia/NodeJS_18_jll?uuid=c1e1d063-8311-5f52-a749-c7b05e91ae37"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1948.json"}},{"package":{"name":"NodeJS_20_jll","ecosystem":"Julia","purl":"pkg:julia/NodeJS_20_jll?uuid=c7aee132-11e1-519c-8219-0a43005e73c2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1948.json"}},{"package":{"name":"NodeJS_22_jll","ecosystem":"Julia","purl":"pkg:julia/NodeJS_22_jll?uuid=8fca9ca2-e7a1-5ccf-8c05-43be5a78664f"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1948.json"}},{"package":{"name":"libnode_jll","ecosystem":"Julia","purl":"pkg:julia/libnode_jll?uuid=76d26698-d9ba-5ca1-ae24-4ac9393d02a0"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1948.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CNA"}]}