CVE-2025-64767: dajiaji hpke-js · Reusing a Nonce, Key Pair in Encryption
Affects dajiaji hpke-jsSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical : upgrade to 1.7.5 as a priority.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade dajiaji/hpke-js to 1.7.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmdajiaji/hpke-jspkg:npm/dajiaji/hpke-jsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The primary mitigation is to upgrade all instances of hpke-js to version 1.7.5 or later, where the race condition and nonce reuse issue have been fixed. Organizations should audit their codebases and dependencies to identify any usage of hpke-js and verify the version in use. For environments where immediate upgrade is not feasible, implementing strict concurrency controls around Seal() calls to prevent simultaneous invocations may reduce risk temporarily, though this is not a substitute for patching. Additionally, organizations should monitor network traffic and logs for anomalous patterns that could indicate exploitation attempts. Incorporating cryptographic best practices such as key rotation and layered encryption can also help limit exposure. Finally, informing development teams about safe usage patterns and the importance of timely updates is critical to prevent recurrence.
Description
hpke-js is a Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API. Prior to version 1.7.5, the public SenderContext Seal() API has a race condition which allows for the same AEAD nonce to be re-used for multiple Seal() calls. This can lead to complete loss of Confidentiality and Integrity of the produced messages. This issue has been patched in version 1.7.5.
References
- github.com/dajiaji/hpke-js/security/advisories/GHSA-73g8-5h73-26h4 (opens in a new tab)
- github.com/dajiaji/hpke-js/commit/94a767c9b9f37ce48d5cd86f7017d8cacd294aaf (opens in a new tab)
- github.com/dajiaji/hpke-js/blob/b7fd3592c7c08660c98289d67c6bb7f891af75c4/packages/core/src/senderContext.ts (opens in a new tab)