CVE-2026-107755: Apache CouchDB Replicator Credential Exposure via Object-Form URLs
A credential exposure vulnerability (CVE-2026-107755) has been identified in Apache CouchDB versions 3.5.2 and earlier. The _replicator database allows replication endpoints to be specified as either plain URL strings or structured URL objects. While CouchDB masked authentication passwords when serializing string-based endpoints to non-owner users, it omitted sanitization for object-form endpoints. Any authenticated user with read access to the _replicator database can view cleartext authentication headers, API keys, and passwords belonging to other users' replication jobs. Apache CouchDB 3.5.3 addresses this defect. Hermes evaluates this vulnerability at HTS 76 (MEDIUM).
HERMES THREAT SCORE & CREDENTIAL PRIVACY INTEGRITY
Target:Apache CouchDB Replicator Document Masking (/src/couch_replicator/) CVSS v4.0 evaluates this flaw at 6.0 Medium, while CVSS v3.1 rates it at 6.5 Medium. Hermes Threat Score assigns 76 (MEDIUM). In shared development environments or multi-tenant databases, leaking cross-cluster replication secrets provides lateral movement vectors into upstream central corporate databases.
CVE-2026-107755: Apache CouchDB Replicator Credential Exposure via Object-Form URLsVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft Office & 365 Apps documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Executive Summary & Overview
Section titled โ1. Executive Summary & OverviewโApache CouchDBโs replication protocol supports rich endpoint configurations. Users can declare replication sources and targets as simple strings ("https://user:pass@example.com/db") or as JSON objects providing customized HTTP headers, proxies, and authentication parameters.
To preserve confidentiality in shared databases, CouchDB strips embedded credentials before presenting replication documents to users who are not owners or administrators. Prior to version 3.5.3, this sanitization routine was applied exclusively to URL strings, completely bypassing structured URL objects.
2. Technical Root Cause Analysis (CWE-200 / CWE-522)
Section titled โ2. Technical Root Cause Analysis (CWE-200 / CWE-522)โIn couch_replicator_docs.erl, the function strip_credentials/2 handled string URLs via regex pattern matching:
%% String URLs were masked:strip_credentials(Url) when is_binary(Url) -> couch_util:url_strip_password(Url);
%% Object-form URLs were returned unmodified:strip_credentials({Props}) when is_list(Props) -> Props. %% Bug: returned headers and authorization objects in plaintext!Consequently, non-owner users requesting documents from _replicator received the exact headers configured by other developers or service accounts.
3. Attack Vector & Demonstration
Section titled โ3. Attack Vector & DemonstrationโGET /_replicator/corp_sync_job HTTP/1.1Host: couchdb.target.internal:5984Authorization: Basic dXNlcl9sb3dwcml2OnBhc3M=Accept: application/jsonUnsanitized Response:
{ "_id": "corp_sync_job", "source": { "url": "https://upstream.corp.internal/production_db", "headers": { "Authorization": "Basic YWRtaW5fc2VjcmV0OlN1cGVyU2VjcmV0UGFzczEyMyE=" } }, "target": "local_cache", "continuous": true}4. Affected Versions & Remediation Matrix
Section titled โ4. Affected Versions & Remediation Matrixโ| Product | Vulnerable Versions | Patched Version | Update Urgency |
|---|---|---|---|
| Apache CouchDB | <= 3.5.2 (All Platforms) | 3.5.3 | MEDIUM (Recommended) |
5. Detection Engineering & Threat Hunting
Section titled โ5. Detection Engineering & Threat Huntingโtitle: CouchDB Replicator Database Enumerationid: a1077550-c04c-4db0-7755-couchdb00006status: experimentaldescription: Detects non-administrative querying of _replicator documents containing object-form endpoints.logsource: category: webserver service: couchdbdetection: selection: cs-method: 'GET' cs-uri-stem|contains: '/_replicator' cs-uri-query|contains: 'include_docs=true' condition: selectionlevel: medium6. Remediation & Hardening Roadmap
Section titled โ6. Remediation & Hardening Roadmapโ-
Upgrade to Apache CouchDB 3.5.3: The update recursively inspects and redacts credentials across both string and object-form replication endpoint declarations.
-
Rotate Potentially Exposed Credentials: If non-owner users have read access to
_replicator, immediately rotate passwords and API tokens used across existing replication tasks. -
Restrict Access to the _replicator Database: Enforce strict access controls by setting the
_securityobject of_replicatorso only administrators can read replication configurations.