Skip to main content

OpenCTI CVE-2026-39980

| EUVDEUVD-2026-20972 CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-04-09 GitHub_M
9.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise admin account
  2. Delivery
    Access notifier settings
  3. Exploit
    Inject malicious EJS template
  4. Execution
    Platform processes template
  5. Persist
    Execute arbitrary JavaScript
  6. Impact
    Access sensitive CTI data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
Exploitation Conditions

Requires authenticated access with High privileges (PR:H) specifically holding the 'Manage customization' capability in OpenCTI. This permission allows creation and modification of notifier templates, which are processed by the vulnerable safeEjs.ts module. Default OpenCTI deployments typically restrict customization capabilities to administrator roles, not standard analysts or connectors. Exploitation is NOT possible by unauthenticated attackers, low-privilege users, or API clients without this specific capability. Attack complexity is Low (AC:L) once the privilege prerequisite is met-no special timing, race conditions, or environmental factors required beyond the capability permission. Organizations that have delegated customization rights to non-administrator roles face significantly higher realistic risk than those maintaining strict admin-only customization controls.

Impact

Despite the CVSS 9.1 Critical score, real-world risk is constrained by strict prerequisite conditions. CVSS vector indicates Network attack vector (AV:N) but requires High privileges (PR:H) with the specific 'Manage customization' capability-a sensitive permission typically restricted to platform administrators. Changed scope (S:C) correctly reflects that code execution escapes the template context into the platform process. EPSS score of 0.07% (22nd percentile) suggests minimal observed exploitation attempts, consistent with the high privilege barrier. SSVC framework assessment (Exploitation: none, Automatable: no, Technical Impact: total) aligns with EPSS, confirming this is not a mass-exploitation threat. No CISA KEV listing and GHSA advisory from GitHub indicate responsible disclosure. Primary risk scenario is insider threat or compromised admin accounts in multi-tenant deployments where lower-trust users might gain customization rights. Organizations granting customization capability to non-administrators face elevated risk. The low EPSS despite high CVSS demonstrates this is a 'configuration-dependent high impact' vulnerability rather than an internet-wide emergency.

Exploit ScenarioDerived

An attacker compromises an OpenCTI administrator account with 'Manage customization' privileges through phishing or credential theft. They navigate to the notification settings and create a malicious notifier template containing embedded JavaScript payloads disguised as legitimate EJS template code. When the platform processes this template during notification generation, the unsafe safeEjs.ts module executes the injected code within the Node.js process context, granting the attacker ability to read sensitive threat intelligence data, modify platform configurations, exfiltrate database credentials, or establish persistent backdoor access to the OpenCTI server. No public proof-of-concept code exists, but SSTI exploitation techniques are well-documented for EJS template engines.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Apr 22, 2026

Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization' capability to execute arbitrary JavaScript in the platform process context. Affecting all versions prior to 6.9.5, this vulnerability permits authenticated high-privilege users to achieve complete system compromise through unsafe EJS template rendering in safeEjs.ts. No public exploit code identified and EPSS score of 0.07% indicates low observed exploitation probability, but CVSS 9.1 Critical rating reflects the total technical impact once privileged access is obtained. Vendor patch released in version 6.9.5.

Earlier versions of this analysis (1)
v1 Apr 09, 2026 - 17:45 CVSS 9.1

Server-Side Template Injection in OpenCTI platform versions before 6.9.5 allows authenticated administrators with 'Manage customization' capability to execute arbitrary JavaScript during notifier template processing. The vulnerability stems from improper EJS template sanitization in safeEjs.ts, enabling attackers to achieve remote code execution with platform process privileges. CVSS 9.1 reflects cross-scope impact with high confidentiality, integrity, and availability consequences. No public exploit identified at time of analysis.

RemediationAI

Upgrade immediately to OpenCTI version 6.9.5 or later, released February 2026, which includes fixes for the unsafe template sanitization in safeEjs.ts. Release details at https://github.com/OpenCTI-Platform/opencti/releases/tag/6.9.5. For organizations unable to upgrade immediately, implement strict compensating controls: (1) Audit and remove 'Manage customization' capability from all accounts except a minimal set of fully-trusted platform administrators-this reduces attack surface but limits operational flexibility for distributed teams. (2) Enable comprehensive audit logging for all notifier template creation and modification events, with real-time alerting on template changes-adds detection capability but does not prevent exploitation. (3) If feasible, disable custom notifier templates entirely and use only built-in notification formats-this eliminates the attack vector but may break existing workflows dependent on customized notifications. Review the GitHub advisory for any additional vendor-recommended mitigations. All workarounds trade functionality for security; patching to 6.9.5 is the only complete remediation.

Affected VersionsENISA

opencti < 6.9.5

Affected Packages

pypi pycti fix: 6.9.5
euvd opencti fix: 6.9.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenCTI is a cyber threat intelligence platform built on Node.js that uses EJS (Embedded JavaScript) templating for customizable notification templates. The vulnerability stems from CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), specifically affecting the safeEjs.ts module responsible for rendering user-provided EJS templates. When administrators with customization privileges create or modify notifier templates, the platform fails to properly sanitize template expressions, allowing injection of arbitrary JavaScript code. This Server-Side Template Injection (SSTI) executes in the Node.js process context with full platform privileges, bypassing the intended sandbox restrictions that should limit template capabilities to safe data interpolation only.

Know when Opencti gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Apr 22, 2026 - 00:42 vuln.today
v2 - CVSS changed
Analysis Updated
Apr 16, 2026 - 05:44 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
6.9.5
CVE Published
Apr 09, 2026 - 16:54 nvd
CRITICAL 9.1

DescriptionGitHub Advisory

OpenCTI is an open source platform for managing cyber threat intelligence knowledge and observables. Prior to 6.9.5, the safeEjs.ts file does not properly sanitize EJS templates. Users with the Manage customization capability can run arbitrary JavaScript in the context of the OpenCTI platform process during notifier template execution. This vulnerability is fixed in 6.9.5.

Executive ViewAI

Why It Matters

OpenCTI versions prior to 6.9.5 contain a server-side template injection vulnerability that allows authenticated administrators with customization permissions to execute arbitrary code within the platform, potentially compromising the entire threat intelligence system and any data it manages. Organizations using OpenCTI must prioritize upgrading to 6.9.5 immediately, as the vulnerability requires only existing privileged administrator credentials to trigger complete system compromise.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, restrict the 'Manage customization' capability to only trusted, essential administrators and implement enhanced monitoring of template modification activities and administrator API usage for OpenCTI administration functions.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS POC (1) GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat Yes
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

81
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: +15
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-27960 CRITICAL POC
9.8 May 05

Unauthenticated attackers can escalate privileges in OpenCTI 6.6.0-6.9.12 by impersonating any user account, including t

CVE-2020-37041 HIGH POC
7.5 Jan 30

OpenCTI 3.3.1 is vulnerable to a directory traversal attack via the static/css endpoint. An unauthenticated attacker can

CVE-2020-37044 MEDIUM POC
5.4 Jan 30

OpenCTI 3.3.1 is vulnerable to a reflected cross-site scripting (XSS) attack via the /graphql endpoint. An attacker can

CVE-2025-24977 CRITICAL
9.1 May 05

OpenCTI is an open cyber threat intelligence (CTI) platform. Rated critical severity (CVSS 9.1), this vulnerability is r

CVE-2025-61781 CRITICAL
9.1 Jan 05

Authenticated attackers can delete arbitrary workspaces in OpenCTI versions prior to 6.8.1 due to missing ownership chec

CVE-2024-45404 HIGH
8.1 Dec 12

OpenCTI is an open-source cyber threat intelligence platform. Rated high severity (CVSS 8.1), this vulnerability is remo

CVE-2024-26139 HIGH
8.1 May 23

OpenCTI is an open source platform allowing organizations to manage their cyber threat intelligence knowledge and observ

CVE-2022-30290 HIGH
7.5 Jul 05

In OpenCTI through 5.2.4, a broken access control vulnerability has been identified in the profile endpoint. Rated high

CVE-2026-44730 HIGH
7.2 May 26

Privilege escalation in OpenCTI prior to 6.9.7 allows an organization admin to gain elevated platform-wide privileges by

CVE-2026-35210 HIGH
7.1 Jul 08

Authorization bypass in OpenCTI prior to version 7.260326.0 lets any authenticated user holding the KNOWLEDGE_KNUPDATE p

CVE-2026-35211 MEDIUM
6.5 Jul 08

Elasticsearch Painless script injection via OpenCTI's GraphQL API allows any authenticated user holding the KNOWLEDGE ca

CVE-2026-21886 MEDIUM
6.5 Mar 17

OpenCTI versions prior to 6.9.1 contain an authorization bypass vulnerability in the GraphQL mutation 'IndividualDeletio

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy