# CVE-2026-6875: Sandbox Escape in ServiceNow AI Platform

> Unauthenticated attackers can execute arbitrary code on the ServiceNow AI Platform, requiring immediate patching by hosted and self-hosted customers.

- **Severity:** Critical 9.5 (`CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 13 Jul 2026
- **Updated:** 27 Aug 2026
- **Also known as:** GHSA-8jw2-7qp4-v2jj

## What is CVE-2026-6875?

CVE-2026-6875 is a critical code injection vulnerability in ServiceNow AI Platform, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

ServiceNow has addressed a remote code execution vulnerability that was identified in the ServiceNow AI platform. This vulnerability could enable an unauthenticated user, in certain circumstances, to execute code within the ServiceNow platform.

ServiceNow addressed this vulnerability by deploying a security update to hosted instances. Relevant security updates have also been provided to ServiceNow self-hosted customers and partners.

Further, the vulnerability is addressed in the listed patches and family releases, which have been made available to hosted and self-hosted customers, as well as partners. We are not currently aware of exploitation against ServiceNow instances.

We recommend customers promptly apply appropriate updates or upgrade to a patched release if they have not already done so.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2026-6875?


## How do I fix CVE-2026-6875?

No fix has been published for CVE-2026-6875 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-6875 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6875 exists.

Public exploit code:

- CVE-2026-6875 ServiceNow Pre-Auth RCE Framework | JS Injection → Sandbox Escape → RCE → Root. Features: --detect, --exec, reverse/interactive shell, batch threading, WAF bypass, persistence, lateral movement, credential dump, fileless exec, clean tracks. CVSS 9.5 actively exploited. Authorized & Legal use only. Stay Legal. (github_poc): https://github.com/tc4dy/CVE-2026-6875-PoC-Exploit
- CVE-2026-6875 (github_poc): https://github.com/HORKimhab/CVE-2026-6875
- ServiceNow AI Platform - Pre-Auth JavaScript Sandbox Escape RCE (nuclei): http/cves/2026/CVE-2026-6875.yaml

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-6875 and fix it if it is affected.

What it is: CVE-2026-6875 is a critical code injection vulnerability in ServiceNow AI Platform, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6875 exists.

Affected product: ServiceNow AI Platform. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-6875/ (Markdown: https://insights.sbomify.com/CVE-2026-6875/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-6875
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-6875
- OSV: https://osv.dev/vulnerability/CVE-2026-6875

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-6875/
Summaries are generated and may contain mistakes; the official description above is the record.
