Claude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File
Claude Code is an agentic coding tool. Versions prior to 2.1.53 resolved the permission mode from settings files, including the repo-controlled .claude/settings.json, before determining whether to display the workspace trust confirmation dialog. A malicious repository could set permissions.defaultMode to bypassPermissions in its committed .claude/settings.json, causing the trust dialog to be silently skipped on first open. This allowed a user to be placed into a permissive mode without seeing the trust confirmation prompt, making it easier for an attacker-controlled repository to gain tool execution without explicit user consent. This issue has been patched in version 2.1.53.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-33068
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 02:35 UTC · Revision 1
Source evidence
Claude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File
core-osv · Original sourcePublished 20 Mar 2026, 08:17 UTC
Claude Code is an agentic coding tool. Versions prior to 2.1.53 resolved the permission mode from settings files, including the repo-controlled .claude/settings.json, before determining whether to display the workspace trust confirmation dialog. A malicious repository could set permissions.defaultMode to bypassPermissions in its committed .claude/settings.json, causing the trust dialog to be silently skipped on first open. This allowed a user to be placed into a permissive mode without seeing the trust confirmation prompt, making it easier for an attacker-controlled repository to gain tool execution without explicit user consent. This issue has been patched in version 2.1.53.
osv:CVE-2026-33068
Complete source record
{
"id": "62e2f345e7f7f9d4edf37bb65ff8202de0f1aea95f6c4bab5c64009a25be6d1e",
"url": "https://osv.dev/vulnerability/CVE-2026-33068",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Claude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File",
"summary": "Claude Code is an agentic coding tool. Versions prior to 2.1.53 resolved the permission mode from settings files, including the repo-controlled .claude/settings.json, before determining whether to display the workspace trust confirmation dialog. A malicious repository could set permissions.defaultMode to bypassPermissions in its committed .claude/settings.json, causing the trust dialog to be silently skipped on first open. This allowed a user to be placed into a permissive mode without seeing the trust confirmation prompt, making it easier for an attacker-controlled repository to gain tool execution without explicit user consent. This issue has been patched in version 2.1.53.",
"evidence": "osv:CVE-2026-33068",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-33068",
"aliases": [
"CVE-2026-33068",
"GHSA-mmgp-wc2j-qcv7"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/anthropics/claude-code",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6e7f65eb95693516424e3e21b93c700e1a41e069"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.53"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.53"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.1.52",
"v2.1.51",
"v2.1.50",
"v2.1.49",
"v2.1.47",
"v2.1.45",
"v2.1.44",
"v2.1.42",
"v2.1.41",
"v2.1.39",
"v2.1.38",
"v2.1.37",
"v2.1.36",
"v2.1.34",
"v2.1.33",
"v2.1.32",
"v2.1.31",
"v2.1.30",
"v2.1.29",
"v2.1.12",
"v2.1.27",
"v2.1.25",
"v2.1.23",
"v2.1.22",
"v2.1.21",
"v2.1.20",
"v2.1.19",
"v2.1.17",
"v2.1.16",
"v2.1.15",
"v2.1.14",
"v2.1.11",
"v2.1.9",
"v2.1.7",
"v2.1.6",
"v2.1.5",
"v2.1.4",
"v2.1.3",
"v2.1.2",
"v2.1.1",
"v2.0.76",
"v2.1.0",
"v2.0.74",
"v2.0.73"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33068.json"
}
}
],
"modified": "2026-10-28T02:30:25.275252333Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33068.json",
"https://github.com/anthropics/claude-code/security/advisories/GHSA-mmgp-wc2j-qcv7",
"https://nvd.nist.gov/vuln/detail/CVE-2026-33068"
],
"provider_metadata": {
"cwe_ids": [
"CWE-807"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33068.json"
}
},
"related_cves": [
{
"value": "CVE-2026-33068",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491950,
"published_at": "2026-03-20T08:17:47.794+00:00"
}