CVE-2026-55824: Contao/contao Contao Crawler Leaks Auth Credentials Vulnerability

LOW
Advisory Identifier: GHSA-3mr9-p497-58f6
CVSS 2.6
CWE-200
Published
Advisory Summary

CVE-2026-55824 is a LOW (CVSS 2.6) contao crawler leaks auth credentials vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Contao/contao libraries in the Packagist ecosystem. The issue involves contao crawler leaks auth credentials to external hosts. Remediation is available by upgrading affected packages to version 5.3.47, 5.7.7.

CVE-2026-55824 at a Glance

CVE Identifier CVE-2026-55824
GHSA Identifier GHSA-3mr9-p497-58f6
Severity LOW
CVSS v3.1 Base Score 2.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Contao/contao
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 2.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-55824

To remediate this vulnerability, upgrade all affected Contao/contao dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

contao/contao fixed: 5.3.47
Upgrade contao/contao to 5.3.47
contao/contao fixed: 5.7.7
Upgrade contao/contao to 5.7.7
contao/core-bundle fixed: 5.3.47
Upgrade contao/core-bundle to 5.3.47
contao/core-bundle fixed: 5.7.7
Upgrade contao/core-bundle to 5.7.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for contao/contao

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55824, inspect your project dependencies for Contao/contao:

inspect dependencies for contao/contao

Analyze the terminal output to locate any version of Contao/contao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.3.47), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Contao/contao, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Contao's crawler tries to prevent confidential HTTP client options from being sent to external domains by creating a scoped client: full options for root page origins, cleaned options for everything else. The cleaner removes `Cookie` and `Authorization` headers, but it removes the non-Symfony option names `basic_auth` and `bearer_auth` instead of Symfony HttpClient's real `auth_basic` and `auth_bearer` options. When `contao.crawl.default_http_client_options` contains Basic or Bearer authentication for a protected staging/production site, those credentials remain in the "clean" client used for external links or configured additional URIs. An attacker who can get an external URL crawled, for example through a link on a crawled page while the broken-link checker is enabled, can receive the crawler credentials. ## Technical Detail ### Root Cause ```php // core-bundle/src/Crawl/Escargot/Factory.php:175-209 @ e550b92a01ef625bd546e6c3956dd200af05ebf0 private function createHttpClient(array $options = []): HttpClientInterface { $options = array_merge_recursive( [ 'headers' => [ 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'user-agent' => self::USER_AGENT, ], 'max_duration' => 10, ], array_merge_recursive($this->getDefaultHttpClientOptions(), $options), ); $cleanOptions = $this->cleanOptionsFromConfidentialData($options); if ($options === $cleanOptions) { return ($this->httpClientFactory)($options); } $scopedOptionsByRegex = []; foreach ($this->getRootPageUriCollection()->all() as $rootPageUri) { $scopedOptionsByRegex[preg_quote($this->getOriginFromUri($rootPageUri))] = $options; } return new ScopingHttpClient(($this->httpClientFactory)($cleanOptions), $scopedOptionsByRegex); } ``` ```php // core-bundle/src/Crawl/Escargot/Factory.php:226-247 @ e550b92a01ef625bd546e6c3956dd200af05ebf0 foreach ($options as $k => $v) { if ('headers' === $k) { foreach ($v as $header => $value) { if (\in_array(strtolower($header), ['authorization', 'cookie'], true)) { continue; } $cleanOptions['headers'][$header] = $value; } continue; } if ('basic_auth' === $k || 'bearer_auth' === $k) { continue; } $cleanOptions[$k] = $v; } ``` Symfony HttpClient authentication options are `auth_basic` and `auth_bearer`; Contao's own manual documents `auth_basic` for crawler Basic Authentication. Because the cleaner only strips `basic_auth` and `bearer_auth`, the "clean" default client for non-root-page hosts still carries the real auth options. The existing factory test intends to assert that `Authorization` is not sent to `www.foreign-domain.com`, but its mock client factory ignores the `$defaultOptions` argument, so it does not catch auth options that survive into `HttpClient::create($cleanOptions)`. ## Suggested Mitigation Strip the actual Symfony HttpClient authentication option keys from the clean client. Include NTLM as a defensive extension because Symfony documents it as another auth option. ```diff - if ('basic_auth' === $k || 'bearer_auth' === $k) { + if (\in_array($k, ['auth_basic', 'auth_bearer', 'auth_ntlm', 'basic_auth', 'bearer_auth'], true)) { continue; } ``` Also update the factory test so the mock factory records or preserves `$defaultOptions`; otherwise the test does not verify what `HttpClient::create($cleanOptions)` receives in production. ## Impact - **Direct primitive**: disclosure of crawler Basic/Bearer credentials to an external host reached by the crawler. - **Chain potential**: if those credentials protect a staging or pre-publication environment, an attacker can use them to access that environment. The impact depends on what the leaked credential unlocks. - **Realistic exploitation**: a content editor adds a link to `https://attacker.example/probe` on a page that the crawler visits. When an administrator or scheduled maintenance run starts the broken-link checker with crawler Basic/Bearer authentication configured, the request to the attacker URL includes the generated `Authorization` header.

CVE-2026-55824 Affected Contao/contao Versions

4 component(s)
Fixed Versions:
5.3.475.7.7
Product / Package Ecosystem Affected Versions Fixed Version
contao/contao
Packagist
≥ 4.13.0
< 5.3.47
5.3.47
contao/contao
Packagist
≥ 5.4.0
< 5.7.7
5.7.7
contao/core-bundle
Packagist
≥ 4.13.0
< 5.3.47
5.3.47
contao/core-bundle
Packagist
≥ 5.4.0
< 5.7.7
5.7.7

References

Frequently Asked Questions

What is CVE-2026-55824?
CVE-2026-55824 is a security vulnerability in Contao/contao involving Contao crawler leaks auth credentials to external hosts under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Contao/contao versions are affected?
Affected versions include releases prior to 5.3.47, 5.7.7 across affected packages: contao/contao, contao/core-bundle.
What version fixes CVE-2026-55824?
Upgrading to 5.3.47, 5.7.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/contao affected?
Yes, contao/contao is affected in releases prior to 5.3.47, 5.7.7. Upgrade your dependency to 5.3.47, 5.7.7 or later.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 5.3.47, 5.7.7. Upgrade your dependency to 5.3.47, 5.7.7 or later.
What is the CVSS score of CVE-2026-55824?
CVE-2026-55824 has a CVSS v3.1 base score of 2.6 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-55824?
CVE-2026-55824 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2026-55824?
Run the dependency tree command: 'inspect dependencies for contao/contao'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3mr9-p497-58f6",
  "modified" : "2026-08-06T19:43:02Z",
  "published" : "2026-08-06T19:43:02Z",
  "aliases" : [ "CVE-2026-55824" ],
  "summary" : "Contao crawler leaks auth credentials to external hosts",
  "details" : "### Summary\nContao's crawler tries to prevent confidential HTTP client options from being sent to external domains by creating a scoped client: full options for root page origins, cleaned options for everything else. The cleaner removes `Cookie` and `Authorization` headers, but it removes the non-Symfony option names `basic_auth` and `bearer_auth` instead of Symfony HttpClient's real `auth_basic` and `auth_bearer` options.\n\nWhen `contao.crawl.default_http_client_options` contains Basic or Bearer authentication for a protected staging/production site, those credentials remain in the \"clean\" client used for external links or configured additional URIs. An attacker who can get an external URL crawled, for example through a link on a crawled page while the broken-link checker is enabled, can receive the crawler credentials.\n\n## Technical Detail\n\n### Root Cause\n\n```php\n// core-bundle/src/Crawl/Escargot/Factory.php:175-209 @ e550b92a01ef625bd546e6c3956dd200af05ebf0\nprivate function createHttpClient(array $options = []): HttpClientInterface\n{\n    $options = array_merge_recursive(\n        [\n            'headers' => [\n                'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n                'user-agent' => self::USER_AGENT,\n            ],\n            'max_duration' => 10,\n        ],\n        array_merge_recursive($this->getDefaultHttpClientOptions(), $options),\n    );\n\n    $cleanOptions = $this->cleanOptionsFromConfidentialData($options);\n\n    if ($options === $cleanOptions) {\n        return ($this->httpClientFactory)($options);\n    }\n\n    $scopedOptionsByRegex = [];\n\n    foreach ($this->getRootPageUriCollection()->all() as $rootPageUri) {\n        $scopedOptionsByRegex[preg_quote($this->getOriginFromUri($rootPageUri))] = $options;\n    }\n\n    return new ScopingHttpClient(($this->httpClientFactory)($cleanOptions), $scopedOptionsByRegex);\n}\n```\n\n```php\n// core-bundle/src/Crawl/Escargot/Factory.php:226-247 @ e550b92a01ef625bd546e6c3956dd200af05ebf0\nforeach ($options as $k => $v) {\n    if ('headers' === $k) {\n        foreach ($v as $header => $value) {\n            if (\\in_array(strtolower($header), ['authorization', 'cookie'], true)) {\n                continue;\n            }\n\n            $cleanOptions['headers'][$header] = $value;\n        }\n\n        continue;\n    }\n\n    if ('basic_auth' === $k || 'bearer_auth' === $k) {\n        continue;\n    }\n\n    $cleanOptions[$k] = $v;\n}\n```\n\nSymfony HttpClient authentication options are `auth_basic` and `auth_bearer`; Contao's own manual documents `auth_basic` for crawler Basic Authentication. Because the cleaner only strips `basic_auth` and `bearer_auth`, the \"clean\" default client for non-root-page hosts still carries the real auth options. The existing factory test intends to assert that `Authorization` is not sent to `www.foreign-domain.com`, but its mock client factory ignores the `$defaultOptions` argument, so it does not catch auth options that survive into `HttpClient::create($cleanOptions)`.\n\n\n## Suggested Mitigation\n\nStrip the actual Symfony HttpClient authentication option keys from the clean client. Include NTLM as a defensive extension because Symfony documents it as another auth option.\n\n```diff\n-            if ('basic_auth' === $k || 'bearer_auth' === $k) {\n+            if (\\in_array($k, ['auth_basic', 'auth_bearer', 'auth_ntlm', 'basic_auth', 'bearer_auth'], true)) {\n                 continue;\n             }\n```\n\nAlso update the factory test so the mock factory records or preserves `$defaultOptions`; otherwise the test does not verify what `HttpClient::create($cleanOptions)` receives in production.\n\n## Impact\n\n- **Direct primitive**: disclosure of crawler Basic/Bearer credentials to an external host reached by the crawler.\n- **Chain potential**: if those credentials protect a staging or pre-publication environment, an attacker can use them to access that environment. The impact depends on what the leaked credential unlocks.\n- **Realistic exploitation**: a content editor adds a link to `https://attacker.example/probe` on a page that the crawler visits. When an administrator or scheduled maintenance run starts the broken-link checker with crawler Basic/Bearer authentication configured, the request to the attacker URL includes the generated `Authorization` header.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/contao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.13.0"
      }, {
        "fixed" : "5.3.47"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/contao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.4.0"
      }, {
        "fixed" : "5.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.13.0"
      }, {
        "fixed" : "5.3.47"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.4.0"
      }, {
        "fixed" : "5.7.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/security/advisories/GHSA-3mr9-p497-58f6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-55824"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/commit/5bc6e3f900c439313df57aa561d0865792aafa05"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/commit/80425d28cdf66280a209bd3f5bc31b1a76901a04"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/security-advisories/credentials-disclosure-in-the-crawler"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2026-55824.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2026-55824.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/contao/contao"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-06T19:43:02Z",
    "nvd_published_at" : "2026-07-31T19:17:11Z"
  }
}