CVE-2026-125336: 
Grafana Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-125336 is an improper certificate validation vulnerability in node-forge (also called Forge), a native JavaScript implementation of Transport Layer Security. The flaw exists in pki.verifyCertificateChain() within lib/x509.js, which fails to decode or enforce the X.509 nameConstraints extension (OID 2.5.29.30) during certificate path validation. All versions up to and including 1.4.2 are affected; the issue was disclosed on November 4, 2026, and fixed in version 1.4.3. It carries a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory, Feedly).

Détails techniques

The root cause is classified as CWE-295 (Improper Certificate Validation). RFC 5280 path validation steps 6.1.3(b) and (c) — which check each certificate's names against the permitted and excluded subtrees defined by CA certificates above it — were never implemented in pki.verifyCertificateChain(), and the nameConstraints extension was not decoded at all. As a result, a non-critical nameConstraints extension is silently ignored: an intermediate CA constrained to only .example.com can issue a leaf certificate with CN=evil.com or a subjectAltName dNSName evil.com, and node-forge accepts the chain as valid. Notably, chains with a critical nameConstraints extension were previously rejected as an unsupported critical extension (fail-safe), so only non-critical extensions are exploitable. The CA/Browser Forum Baseline Requirements historically permitted technically constrained subordinate CAs to mark this extension non-critical, meaning such CAs exist in real-world PKI hierarchies. A proof-of-concept is included in the advisory and in the repository at tests/pocs/GHSA-3cc4-3294-vgjf.js (GitHub Advisory, Forge PR #1169).

Impact

Successful exploitation allows an attacker to obtain TLS certificates that node-forge accepts for arbitrary domain names, enabling impersonation of any host to a forge.tls client. The primary impacts are high confidentiality loss (interception of TLS-protected communications) and high integrity loss (man-in-the-middle attacks, forged server identity), with no availability impact. Applications relying on pki.verifyCertificateChain() or forge.tls for peer verification are at risk of accepting fraudulent certificates, potentially exposing sensitive data or allowing unauthorized actions on behalf of impersonated services (GitHub Advisory).

Exploitabilité

A proof-of-concept is publicly available in the GitHub Security Advisory and the node-forge test suite, with concrete reproduction steps described (GitHub Advisory). Exploitation is not automated — it requires the attacker to possess the private key of a name-constrained CA that chains to a root trusted by the target application, or the ability to obtain a certificate issued under such a CA, making it a high-complexity attack. There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.0023 (low probability of near-term exploitation), and the vulnerability is not listed in the CISA KEV catalog (Feedly).

Étapes d’exploitation

  1. Identify a vulnerable target: Locate an application using node-forge <= 1.4.2 for TLS peer verification (forge.tls) or certificate chain validation (pki.verifyCertificateChain()), and confirm it trusts a root CA under which a name-constrained intermediate CA with a non-critical nameConstraints extension exists.
  2. Obtain CA access: Acquire the private key of the name-constrained intermediate CA, or obtain a certificate issued under it for an out-of-scope name (e.g., through a misconfigured or compromised CA).
  3. Issue a rogue leaf certificate: Using the intermediate CA's key, sign a leaf certificate with a subject CN=evil.com (no subjectAltName) or with a subjectAltName dNSName evil.com — a name outside the CA's permitted subtrees.
  4. Present the forged chain: During a TLS handshake or via a direct call, present the chain [leaf, intermediate] to the victim's node-forge verification routine. On versions <= 1.4.2, pki.verifyCertificateChain(caStore, [leaf, intermediate]) returns true because the nameConstraints extension is not enforced.
  5. Achieve impersonation: The attacker's server, presenting the accepted forged certificate, successfully impersonates the target domain to the forge.tls client, enabling man-in-the-middle interception or data manipulation (GitHub Advisory).

Indicateurs de compromis

  • Network: Unexpected TLS connections where the server certificate's CN or subjectAltName does not match the domain permitted by the issuing intermediate CA's nameConstraints extension; TLS sessions established with certificates issued by an intermediate CA for domains outside its delegated namespace.
  • Logs: Application logs showing successful TLS handshakes or certificate chain verifications for hostnames inconsistent with the intermediate CA's permitted subtrees; absence of bad_certificate errors in node-forge logs where name constraint violations would be expected on a patched system.
  • File System: Presence of rogue certificate files (.pem, .crt, .cer) with subject names inconsistent with the issuing CA's nameConstraints extension in application certificate stores or temporary directories.
  • Process: Node.js processes loading node-forge versions <= 1.4.2 (package.json or node_modules/node-forge/package.json showing version < 1.4.3) in environments that perform TLS peer verification (GitHub Advisory).

Atténuation et solutions de contournement

Upgrade node-forge to version 1.4.3 or later, which enforces nameConstraints in verifyCertificateChain() for subject DN, emailAddress, subjectAltName (rfc822Name, dNSName, directoryName, uniformResourceIdentifier, iPAddress), and the trust anchor (Forge Release v1.4.3, Forge PR #1169). As a temporary workaround (which rejects all chains below any name-constrained CA, including valid ones), pass a custom options.verify callback to pki.verifyCertificateChain() (or verify to forge.tls.createConnection()) that returns an error when any CA certificate in the chain has an extension with OID 2.5.29.30. Organizations should prioritize patching systems using forge for TLS client operations and review certificate chains in production environments for potential misuse (GitHub Advisory).

Réactions de la communauté

The vulnerability was reported by security researcher @bhaswanthc, who also contributed the initial implementation of the fix, and was published with AI assistance according to the advisory (GitHub Advisory). The fix was developed in coordination with the digitalbazaar maintainer @davidlehn and validated against OpenSSL 3.5.5 across 62 curated chains and 2,600 random constraint/name combinations. No significant broader media coverage or notable social media reactions have been identified beyond the GitHub advisory and standard vulnerability database entries.

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Ubuntu

Inconnu

focal (esm-apps)

node-node-forge

Inconnu

jammy

node-node-forge

Inconnu

jammy (esm-apps)

node-node-forge

Inconnu

RHEL / CentOS

Affecté

RHEL 8

grafana.src

Affecté

RHEL 9

grafana.src

Affecté

RHEL 10

grafana.src

Affecté

Source: Ce rapport a été généré à l’aide de l’IA

Connexe Grafana Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-134815CRITICAL9.2
  • Grafana logoGrafana
  • grafana-postgres
NonNonNov 22, 2026
CVE-2026-134813HIGH8.7
  • Grafana logoGrafana
  • cockpit-ha-cluster
NonNonNov 22, 2026
CVE-2026-133937MEDIUM5.5
  • Grafana logoGrafana
  • grafana-opentsdb
NonNonNov 20, 2026
CVE-2026-10084MEDIUM5.3
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
NonOuiNov 24, 2026
CVE-2026-133487LOW2.1
  • Grafana logoGrafana
  • nodejs24.src
NonOuiNov 20, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités