CVE-2026-1868
CVE-2026-1868 — Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI Gateway
GitLab has remediated a vulnerability in the Duo Workflow Service component of GitLab AI Gateway affecting all versions of the AI Gateway from 18.1.6, 18.2.6, 18.3.1 to 18.6.1, 18.7.0, and 18.8.0 in which AI Gateway was vulnerable to insecure template expansion of user supplied data via crafted Duo Agent Platform Flow definitions. This vulnerability could be used to cause Denial of Service or gain code execution on the Gateway. This has been fixed in versions 18.6.2, 18.7.1, and 18.8.1 of the GitLab AI Gateway.
Published Updated Sources: NVD, GitLab (CNA), GitHub, GitHub Security Advisory, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Reported
not confirmed by CISA
EPSS
<1%
ahead of 54% of scored CVEs
CVSS base
9.9
critical
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade self-hosted GitLab AI Gateway to version 18.6.2, 18.7.1, 18.8.1 or above.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| GitLab | GitLab AI Gateway | 18.1.6 to < 18.6.2 | Vulnerable |
| GitLab | GitLab AI Gateway | 18.7.0 to < 18.7.1 | Vulnerable |
| GitLab | GitLab AI Gateway | 18.8.0 to < 18.8.1 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Changed
Attack Complexity
Low
Attack Vector
Network
Privileges Req
Low
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.9 | CVSS 3.1 | critical | 3.1 | 6 | gitlab.com (CNA), GitLab (CNA), GHSA |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
- Execute Unauthorized Code or Commands::
Mitigation: Choose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
Weakness & attack patterns
- CWE-1336
Inferred from the weakness class — not observed against this CVE.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
55
1 of the 5 sampled are weaponized
Social mentions
Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.
Second, this is the second 9.9 in the same component this year. February brought CVE-2026-1868: same CWE-1336 template weakness, same crafted flow vector. When the same sandbox breaks twice in eight months, the sandbox is the design.
@awais_khawar· Oct 5, 2026
TRC analysis shows attackers exploited GitLab's Jupyter notebook diff rendering to execute commands as the 'git' user without admin privileges. CVE-2026-1868 demonstrates how AI infrastructure components create new attack surfaces that bypass traditional access controls.
@aviatrixtrc· Jul 25, 2026
#VulnerabilityReport #AIGateway CVE-2026-1868: Critical GitLab Gateway Flaw (CVSS 9.9) Allows RCE https://t.co/RKOTmRwUBl
@Komodosec· Mar 15, 2026
Migrating to self-hosted GitLab isn't the silver bullet anymore. CVE-2026-1868 (9.9/10) proved it. The vulnerability wasn't in the core, but in the "AI Gateway" module. 🤖🚫 Shoving AI into infrastructure is creating massive security holes. https://t.co/FiwFFHOy0t
@MikelEcheve· Feb 22, 2026
CVE-2026-1868: GitLab CVSS 9.9—RCE on the platform holding your code, secrets, and pipelines. Unpatched instance? That's a vault in the lobby with "code inside" on a post-it. Patch in days, not weeks. Or drop "DevSecOps" from the slides—you're not doing it.
@CisoRaging77913· Feb 16, 2026
8 more posts on this CVEShowing 5 of 13 · Who is discussing this CVE, and how loudlyUnlock freeDetection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable GitLab AI Gateway.
- Monitor for scanner or exploit-pattern traffic after 55 public PoC repositories were reported.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 9.9 (AV:N)
Jun 17, 2026 · NVD
Initial · CVE published
Feb 9, 2026 · NVD
Added · GHSA-jfr3-cr47-9vqq published (critical)
Feb 9, 2026 · GitHub Security Advisory
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 9×TweetsFeb 9, 2026 – Oct 6, 2026 · SOCRadar CTI
- 8×SvrsFeb 9, 2026 – Mar 7, 2026 · SOCRadar CTI
- 1×CVE appeared in the Cve Trends.Feb 10, 2026 · SOCRadar CTI
- 1×CVE modified by MITRE: CVSS metrics updated.Feb 9, 2026 · SOCRadar CTI
- 1×1 time mentioned on 1 Telegram channelFeb 9, 2026 · SOCRadar CTI
References
4 on the record
- about.gitlab.com/releases/2026/02/06/patch-release-gitlab-ai-gateway-18-8-1-released/
Vendor Advisory, NIST
- gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/work_items/1850
Vendor Advisory, NIST, GITHUB
- nvd.nist.gov/vuln/detail/CVE-2026-1868
NVD
- github.com/advisories/GHSA-jfr3-cr47-9vqq
Exploit, Third Party Advisory
Coverage
4 stories from the feeds we poll
GitLab AI Gateway Critical Patch Release: 18.6.2, 18.7.1, and 18.8.1
docs.gitlab.com · Feb 6, 2026
GitLab patches the 9.9 CVE-2026-90970 vulnerability in its AI Gateway - pasqualepillitteri.it
pasqualepillitteri.it · Oct 3, 2026
SANS Stormcast Monday, February 9th, 2026: Azure Vulnerabilties; AI Vulnerability Discovery; GitLab AI Gateway Vuln
isc.sans.edu · Feb 9, 2026
CVE-2026-1868
vuldb.com · Feb 9, 2026
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-90970 Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI GatewayCVSS 9.9
- CVE-2026-75650 Adobe Commerce | Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)CVSS 10.0 · CISA KEV
- CVE-2024-4040 CrushFTP VFS Sandbox Escape VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2024-23692 Rejetto HTTP File Server Improper Neutralization of Special Elements Used in a Template Engine VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-138223 David-Crty Databasement Toast Notification Helper Toast.php toast special elements in template engineCVSS 10.0
- CVE-2026-130637 Pre-authentication server-side template injection in SEPPMAIL Secure E-Mail GatewayCVSS 9.3
Elsewhere on this site
- GitLabevery CVE for this vendor
- GitLab AI Gatewayevery page on this product
- Remote Code Execsame class
- CWE-1336other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-1868 is Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI Gateway, a critical vulnerability affecting GitLab AI Gateway from GitLab. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 55 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.9 describes technical severity, while EPSS 1% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.