Skip to main content
CVE-2025-64767VulnerabilityPublished

CVE-2025-64767: dajiaji hpke-js · Reusing a Nonce, Key Pair in Encryption

Affects dajiaji hpke-jsSource CVE Database V5

0

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

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmdajiaji/hpke-jspkg:npm/dajiaji/hpke-jsOther threatsAffected
  • <1.7.5
Fixed in
  • 1.7.5

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

Community reviews

Loading reviews…