CVE-2026-125335
Forge: Ed25519 signature verification accepts small- order public keys
- Severity
- 3.7LowNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.23% in 30 daysPercentile14thEPSS, scored
- Listed fix
1.4.3for node-forge (npm) From GitHub Advisories and OSV28 other affected packages
Overview
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NExploit chance over time
Affected
Packages 29
| Package | Affected | Fixed |
|---|---|---|
node-forgenpm | through 1.4.2 | 1.4.3 |
| before 1.4.3 | 1.4.3 | |
python-tensorboardAzure Linux:3 | through 2.16.2-6 | None listed |
kyverno-policy-reporter-ui-devDocker Hardened Images:Alpine:3.23 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-ui-devDocker Hardened Images:Alpine:3.24 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-ui-fips-devDocker Hardened Images:Alpine:3.23 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-ui-fips-devDocker Hardened Images:Alpine:3.24 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-ui-fipsDocker Hardened Images:Alpine:3.23 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-ui-fipsDocker Hardened Images:Alpine:3.24 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
kyverno-policy-reporter-uiDocker Hardened Images:Alpine:3.23 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
Show 20 more packagesShow less
| Package | Affected | Fixed |
|---|---|---|
kyverno-policy-reporter-uiDocker Hardened Images:Alpine:3.24 | 2.6.1-r0 and later, plus listed versions 2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1 Show 20 more versionsShow less2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8 | None listed |
logto-1Docker Hardened Images:Alpine:3.23 | 1.45.0-r0 and later, plus listed versions 1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0 Show 8 more versionsShow less1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8 | None listed |
logto-1Docker Hardened Images:Alpine:3.24 | 1.45.0-r0 and later, plus listed versions 1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0 Show 8 more versionsShow less1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8 | None listed |
postman-mcpDocker Hardened Images:Alpine:3.23 | 2.11.2-r5 and later, plus listed versions 2.12.0-r02.12.2-r02.12.3-r02.13.0-r02.14.0-r02.15.0-r02.15.0-r12.15.0-r2 | None listed |
postman-mcpDocker Hardened Images:Alpine:3.24 | 2.9.1-r0 and later, plus listed versions 2.11.0-r02.11.1-r02.11.1-r12.11.2-r12.11.2-r2 Show 11 more versionsShow less2.11.2-r32.11.2-r42.11.2-r52.12.0-r02.12.2-r02.12.3-r02.13.0-r02.14.0-r02.15.0-r02.15.0-r12.15.0-r2 | None listed |
sorry-cypress-director-2Docker Hardened Images:Alpine:3.23 | 2.6.0-r0 and later, plus listed versions 2.6.0-r102.6.0-r22.6.0-r32.6.0-r42.6.0-r5 Show 4 more versionsShow less2.6.0-r62.6.0-r72.6.0-r82.6.0-r9 | None listed |
sorry-cypress-director-2Docker Hardened Images:Alpine:3.24 | 2.6.0-r0 and later, plus listed versions 2.6.0-r102.6.0-r22.6.0-r32.6.0-r42.6.0-r5 Show 4 more versionsShow less2.6.0-r62.6.0-r72.6.0-r82.6.0-r9 | None listed |
kibana-9.4Docker Hardened Images:Debian:13 | 9.4.5-1 and later, plus listed versions 9.4.10-09.4.10-19.4.10-29.4.7-09.4.8-0 Show 18 more versionsShow less9.4.8-19.4.8-119.4.8-129.4.8-139.4.8-149.4.8-29.4.8-39.4.8-49.4.8-59.4.8-69.4.8-79.4.8-89.4.8-99.4.9-09.4.9-19.4.9-29.4.9-39.4.9-4 | None listed |
kibana-9.5Docker Hardened Images:Debian:13 | 9.5.5-0 and later, plus listed versions 9.5.5-19.5.5-109.5.5-119.5.5-129.5.5-2 Show 13 more versionsShow less9.5.5-39.5.5-49.5.5-59.5.5-69.5.5-79.5.5-99.5.6-09.5.6-19.5.6-29.5.6-39.5.7-09.5.7-19.5.7-2 | None listed |
kubeflow-pipelines-frontendDocker Hardened Images:Debian:13 | 2.17.0-0 up to 2.18.0-0, plus listed versions 2.17.0-12.17.0-22.17.0-32.17.0-42.17.1-0 Show 8 more versionsShow less2.17.1-12.17.2-02.17.2-12.17.2-22.17.2-32.17.2-42.17.2-52.17.3-0 | 2.18.0-0 |
kyverno-policy-reporter-ui-devDocker Hardened Images:Debian:13 | 2.6.1-0 and later, plus listed versions 2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1 Show 20 more versionsShow less2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8 | None listed |
kyverno-policy-reporter-ui-fips-devDocker Hardened Images:Debian:13 | 2.6.1-0 and later, plus listed versions 2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1 Show 20 more versionsShow less2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8 | None listed |
kyverno-policy-reporter-ui-fipsDocker Hardened Images:Debian:13 | 2.6.1-0 and later, plus listed versions 2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1 Show 20 more versionsShow less2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8 | None listed |
kyverno-policy-reporter-uiDocker Hardened Images:Debian:13 | 2.6.1-0 and later, plus listed versions 2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1 Show 20 more versionsShow less2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8 | None listed |
logto-1Docker Hardened Images:Debian:13 | 1.45.0-0 and later, plus listed versions 1.45.0-11.45.0-21.45.0-31.45.0-41.46.0-0 Show 8 more versionsShow less1.46.0-11.46.0-21.46.0-31.46.0-41.46.0-51.46.0-61.46.0-71.46.0-8 | None listed |
opensearch-dashboardsDocker Hardened Images:Debian:13 | 3.8.0-0 and later, plus listed versions 3.10.0-03.10.0-13.10.0-23.10.0-33.10.0-4 Show 11 more versionsShow less3.10.0-53.8.0-13.8.0-23.8.0-33.9.0-03.9.0-13.9.0-23.9.0-33.9.0-43.9.0-53.9.0-6 | None listed |
postman-mcpDocker Hardened Images:Debian:13 | 2.9.1-0 and later, plus listed versions 2.11.0-02.11.1-02.11.1-12.11.2-02.11.2-1 Show 12 more versionsShow less2.11.2-22.11.2-32.11.2-52.12.0-02.12.2-02.12.3-02.13.0-02.13.0-12.14.0-02.15.0-02.15.0-12.15.0-2 | None listed |
sorry-cypress-director-2Docker Hardened Images:Debian:13 | 2.6.0-0 and later, plus listed versions 2.6.0-102.6.0-22.6.0-32.6.0-42.6.0-5 Show 4 more versionsShow less2.6.0-62.6.0-72.6.0-82.6.0-9 | None listed |
node-node-forgeUbuntu:20.04:LTS | All versions, plus listed versions 0.8.5~dfsg-20.9.1~dfsg-1 | None listed |
node-node-forgeUbuntu:22.04:LTS | All versions, plus listed versions 0.10.0~dfsg-31.2.1~dfsg-2 | None listed |
Only in multi-CVE advisories 1
Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.
| Package | Affected | Fixed |
|---|---|---|
node-forgeTuxCare:npm | 0.7.6-tuxcare.0 up to 0.7.6-tuxcare.1, plus listed versions From an advisory covering 29 CVEs 0.7.6 | 0.7.6-tuxcare.1 |
| 0.9.0-tuxcare.0 up to 0.9.0-tuxcare.6, plus listed versions From an advisory covering 10 CVEs 0.9.00.9.0-tuxcare.10.9.0-tuxcare.20.9.0-tuxcare.30.9.0-tuxcare.40.9.0-tuxcare.5 | 0.9.0-tuxcare.6 | |
| 0.10.0-tuxcare.0 up to 0.10.0-tuxcare.12, plus listed versions From an advisory covering 6 CVEs 0.10.00.10.0-tuxcare.10.10.0-tuxcare.100.10.0-tuxcare.110.10.0-tuxcare.2 Show 7 more versionsShow less0.10.0-tuxcare.30.10.0-tuxcare.40.10.0-tuxcare.50.10.0-tuxcare.60.10.0-tuxcare.70.10.0-tuxcare.80.10.0-tuxcare.9 | 0.10.0-tuxcare.12 |
Products 1
Sources
CVE List Score usedCVSS 3.13.7
Forge: Ed25519 signature verification accepts small-order public keys
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
CVE-2026-125335- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-347
- Updated
- 2026-11-10
EUVDEUVD-2026-122797CVSS 3.13.7
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
EUVD-2026-122797- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-10
GitHub AdvisoriesGHSA-6889-vf6x-f3g5CVSS 3.13.7
Forge: Ed25519 signature verification accepts small-order public keys
Summary
ed25519.verify() does not reject public keys of small order, such as the identity point. Under such a key, a signature with S = 0 and a small-order R verifies for many messages, or for every message with the identity key, without any private key. Fixed in node-forge 1.4.3.
Details
crypto_sign_open() in lib/ed25519.js decodes the public key A with unpackneg(), which only checks that the point is on the curve, and then checks R == [S]B - [k]A with k = SHA-512(R || A || M). Nothing rejects public keys of small order: the identity point, the other 7 points of order 2, 4 or 8, and their non-canonical encodings with y >= p.
With S = 0, the check becomes R == [k](-A). For a small-order A, [k](-A) is one of at most 8 small-order points, so an attacker can make a valid signature by trying the small-order values of R. For the identity key (01 00 … 00), R = identity and S = 0 verifies for every message. For the other small-order keys, a given message can be forged with high probability. No private key is involved. The S < L check added for CVE-2026-33895 (GHSA-q67f-28xg-22rw) doesn't apply, because S = 0 is canonical.
Keys produced by Ed25519 key generation (ed25519.generateKeyPair() or any RFC 8032 implementation) are never small-order, so signatures under them cannot be forged this way. Applications are affected when they verify signatures against a public key an attacker can choose (for example a key included with the signed data, a self-registered key, or a key in an attacker-controlled document) and rely on the signature being bound to the message: proof of possession, attribution, non-repudiation or deduplication.
RFC 8032 doesn't require rejecting small-order public keys, and implementations differ. libsodium rejects them, and Node.js crypto.verify() (OpenSSL) rejects these signatures.
The fix rejects a public key A when [8]A is the identity point. This covers all small-order points and their non-canonical encodings.
Patches
Fixed in node-forge 1.4.3. ed25519.verify() returns false for small-order public keys.
Workarounds
Before calling ed25519.verify() with a public key from untrusted input, reject keys whose 32-byte encoding is one of the small-order points (the identity 01 00 … 00 and the other encodings that libsodium blocks), or only verify against keys you generated or have otherwise validated.
Resources
- RFC 8032, Section 5.1.7 (Ed25519 verification): https://www.rfc-editor.org/rfc/rfc8032#section-5.1.7
- GHSA-q67f-28xg-22rw / CVE-2026-33895 (a different Ed25519 verification issue, fixed in 1.4.0): https://github.com/digitalbazaar/forge/security/advisories/GHSA-q67f-28xg-22rw
Severity
CVSS 3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N (3.7, Low) CVSS 4.0 (informational): CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N (6.3) CVSS 4.0 rates this Moderate because its integrity weighting is higher; the severity rating follows CVSS 3.1.
Credits
Reported by @analisaperlengkapan.
Proof of concept
Identity public key A = 01 00 … 00 (32 bytes) and signature R = 01 00 … 00, S = 00 … 00 (64 bytes):
forge.ed25519.verify({message: 'admin=true', encoding: 'utf8',
signature: SIG, publicKey: IDENTITY});
// <= 1.4.2: true for any message; node:crypto.verify(): false
// 1.4.3: false
Other small-order public keys (orders 2, 4 and 8, and non-canonical encodings) give forgeries for many messages with S = 0 and a small-order R.
Regression tests are in tests/unit/ed25519.js, and the reporter's PoC is in tests/pocs/ghsa-6889-vf6x-f3g5.js.
Impact
Applications that verify Ed25519 signatures with node-forge against a public key that an attacker can choose are affected. An attacker can provide a small-order public key and then produce signatures that verify for many or all messages without a private key, defeating checks that rely on a signature being bound to its message…
- Record
GHSA-6889-vf6x-f3g5- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-347
- Updated
- 2026-11-10
NVDCVSS 3.13.7
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
CVE-2026-125335- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-347
- Updated
- 2026-11-16
OSVCVSS 3.13.7
Forge: Ed25519 signature verification accepts small-order public keys
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
CVE-2026-125335- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-347
- Updated
- 2026-11-12
OSVDHI-am46-ldlq-niqa-ffq5CVSS 3.13.7
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3…
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
DHI-am46-ldlq-niqa-ffq5- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-12-05
Show 6 more recordsShow less
OSVGHSA-6889-vf6x-f3g5CVSS 3.13.7
Forge: Ed25519 signature verification accepts small-order public keys
Summary
ed25519.verify() does not reject public keys of small order, such as the identity point. Under such a key, a signature with S = 0 and a small-order R verifies for many messages, or for every message with the identity key, without any private key. Fixed in node-forge 1.4.3.
Details
crypto_sign_open() in lib/ed25519.js decodes the public key A with unpackneg(), which only checks that the point is on the curve, and then checks R == [S]B - [k]A with k = SHA-512(R || A || M). Nothing rejects public keys of small order: the identity point, the other 7 points of order 2, 4 or 8, and their non-canonical encodings with y >= p.
With S = 0, the check becomes R == [k](-A). For a small-order A, [k](-A) is one of at most 8 small-order points, so an attacker can make a valid signature by trying the small-order values of R. For the identity key (01 00 … 00), R = identity and S = 0 verifies for every message. For the other small-order keys, a given message can be forged with high probability. No private key is involved. The S < L check added for CVE-2026-33895 (GHSA-q67f-28xg-22rw) doesn't apply, because S = 0 is canonical.
Keys produced by Ed25519 key generation (ed25519.generateKeyPair() or any RFC 8032 implementation) are never small-order, so signatures under them cannot be forged this way. Applications are affected when they verify signatures against a public key an attacker can choose (for example a key included with the signed data, a self-registered key, or a key in an attacker-controlled document) and rely on the signature being bound to the message: proof of possession, attribution, non-repudiation or deduplication.
RFC 8032 doesn't require rejecting small-order public keys, and implementations differ. libsodium rejects them, and Node.js crypto.verify() (OpenSSL) rejects these signatures.
The fix rejects a public key A when [8]A is the identity point. This covers all small-order points and their non-canonical encodings.
Patches
Fixed in node-forge 1.4.3. ed25519.verify() returns false for small-order public keys.
Workarounds
Before calling ed25519.verify() with a public key from untrusted input, reject keys whose 32-byte encoding is one of the small-order points (the identity 01 00 … 00 and the other encodings that libsodium blocks), or only verify against keys you generated or have otherwise validated.
Resources
- RFC 8032, Section 5.1.7 (Ed25519 verification): https://www.rfc-editor.org/rfc/rfc8032#section-5.1.7
- GHSA-q67f-28xg-22rw / CVE-2026-33895 (a different Ed25519 verification issue, fixed in 1.4.0): https://github.com/digitalbazaar/forge/security/advisories/GHSA-q67f-28xg-22rw
Severity
CVSS 3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N (3.7, Low) CVSS 4.0 (informational): CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N (6.3) CVSS 4.0 rates this Moderate because its integrity weighting is higher; the severity rating follows CVSS 3.1.
Credits
Reported by @analisaperlengkapan.
Proof of concept
Identity public key A = 01 00 … 00 (32 bytes) and signature R = 01 00 … 00, S = 00 … 00 (64 bytes):
forge.ed25519.verify({message: 'admin=true', encoding: 'utf8',
signature: SIG, publicKey: IDENTITY});
// <= 1.4.2: true for any message; node:crypto.verify(): false
// 1.4.3: false
Other small-order public keys (orders 2, 4 and 8, and non-canonical encodings) give forgeries for many messages with S = 0 and a small-order R.
Regression tests are in tests/unit/ed25519.js, and the reporter's PoC is in tests/pocs/ghsa-6889-vf6x-f3g5.js.
Impact
Applications that verify Ed25519 signatures with node-forge against a public key that an attacker can choose are affected. An attacker can provide a small-order public key and then produce signatures that verify for many or all messages without a private key, defeating checks that rely on a signature being bound to its message…
- Record
GHSA-6889-vf6x-f3g5- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-347
- Updated
- 2026-11-10
OSVUBUNTU-CVE-2026-125335CVSS 3.13.7
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
UBUNTU-CVE-2026-125335- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-19
OSVAZL-113585No score
CVE-2026-125335 affecting package python-tensorboard 2.16.2-6
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, ed25519.verify() decodes a public key in crypto_sign_open() without rejecting small-order points or their non-canonical encodings. With S = 0 and a small-order R value, an attacker who can choose the public key can produce signatures that verify for many messages, or all messages with the identity key, without a private key. This can defeat proof-of-possession, attribution, non-repudiation, or deduplication checks that rely on a signature being bound to the message. Keys produced by normal Ed25519 key generation are not small-order, so applications that verify only trusted or internally generated public keys are not affected. This issue is fixed in version 1.4.3.
- Record
AZL-113585- Updated
- 2026-11-13
OSVCLSA-2026-1795258391No score
TuxCare security update for node-forge (29 CVEs)
TuxCare rebuilt node-forge to address 29 CVEs. Fixed in 0.7.6-tuxcare.1.
- Record
CLSA-2026-1795258391- Updated
- 2026-12-05
OSVCLSA-2026-1795514830No score
TuxCare security update for node-forge (10 CVEs)
TuxCare rebuilt node-forge to address 10 CVEs. Fixed in 0.9.0-tuxcare.6.
- Record
CLSA-2026-1795514830- Updated
- 2026-12-05
OSVCLSA-2026-1795795991No score
TuxCare security update for node-forge (6 CVEs)
TuxCare rebuilt node-forge to address 6 CVEs. Fixed in 0.10.0-tuxcare.12.
- Record
CLSA-2026-1795795991- Updated
- 2026-11-27
The JSON record also has the rest of 2 source descriptions.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages, other IDs | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages, other IDs | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV |
Show 8 more daysShow less
| Day | Changed | Sources |
|---|---|---|
| Affected packages | OSV | |
| Affected packages, other IDs | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages, other IDs, references | OSV | |
| References | NVD, OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages, other IDs, references | OSV | |
| References | OSV | |
| Published date | EUVD | |
| Published date | EUVD, NVD | |
| Affected packages, references | OSV | |
| Affected packages, other IDs, key facts, references | GitHub Advisories | |
| Other IDs, published date | EUVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/digitalbazaar/forge/security/advisories/GHSA-6889-vf6x-f3g5
github.com/digitalbazaar/forge/pull/1169
github.com/digitalbazaar/forge/commit/1b77e6f20082d7484479303d0252d5f427651295
github.com/digitalbazaar/forge/releases/tag/v1.4.3
github.com/advisories/GHSA-6889-vf6x-f3g5
nvd.nist.gov/vuln/detail/CVE-2026-125335
github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125335.json
scout.docker.com/v/DHI-am46-ldlq-niqa-ffq5