CVE-2026-77379: Information Disclosure in Bolt CMS Public Relation API
Vulnerability ID: CVE-2026-77379
CVSS Score: 5.3
Published: 2026-11-20
Bolt CMS prior to version 6.1.4 contains an information disclosure vulnerability in its public Relation API endpoints. The Doctrine ORM query extension (ContentExtension) fails to filter out unpublished, draft, or viewless content when querying the Relation entity. Because the Relation resource is configured with public read access (PUBLIC_ACCESS) via API Platform REST and GraphQL endpoints, unauthenticated remote attackers can enumerate relationship graphs, entity identifiers, and metadata associated with private content.
TL;DR
An omitted Doctrine ORM query filter in Bolt CMS before 6.1.4 allows unauthenticated users to retrieve relationship graphs and metadata of unpublished, draft, and viewless content via the public Relation REST and GraphQL API endpoints.
Technical Details
- Vulnerability Type: CWE-402: Transmission of Private Resources into a New Sphere
- CVSS v3.1 Score: 5.3 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- Affected Component: Bolt\Api\Extensions\ContentExtension (src/Api/Extensions/ContentExtension.php)
- Attack Vector: Network (Unauthenticated REST /api/relations and GraphQL API queries)
- Security Impact: Information disclosure of unpublished/draft content IDs, existence, and relationship graphs
- Patched Version: bolt/core 6.1.4
- Exploit Status: No known public exploits or active exploitation
- CISA KEV Status: Not Listed
Affected Systems
- Bolt CMS (bolt/core)
-
bolt/core: < 6.1.4 (6.0.0-beta.1 through 6.1.3) (Fixed in:
6.1.4)
Code Analysis
Commit: 577b223
Filter unpublished/viewless content from the public Relation API
diff --git a/src/Api/Extensions/ContentExtension.php b/src/Api/Extensions/ContentExtension.php
index e6731aa726..f5131bbbb0 100644
--- a/src/Api/Extensions/ContentExtension.php
+++ b/src/Api/Extensions/ContentExtension.php
@@ -11,6 +11,7 @@
use Bolt\Configuration\Config;
use Bolt\Entity\Content;
use Bolt\Entity\Field;
+use Bolt\Entity\Relation;
use Bolt\Enum\Statuses;
use Doctrine\ORM\QueryBuilder;
use Illuminate\Support\Collection;
@@ -50,6 +51,10 @@ public function applyToCollection(
if ($resourceClass === Field::class) {
$this->filterUnpublishedViewlessFields($queryBuilder);
}
+
+ if ($resourceClass === Relation::class) {
+ $this->filterUnpublishedViewlessRelations($queryBuilder);
+ }
}
public function applyToItem(
@@ -67,6 +72,10 @@ public function applyToItem(
if ($resourceClass === Field::class) {
$this->filterUnpublishedViewlessFields($queryBuilder);
}
+
+ if ($resourceClass === Relation::class) {
+ $this->filterUnpublishedViewlessRelations($queryBuilder);
+ }
}
private function filterUnpublishedViewlessContent(QueryBuilder $queryBuilder): void
@@ -97,4 +106,26 @@ private function filterUnpublishedViewlessFields(QueryBuilder $queryBuilder): vo
$queryBuilder->setParameter('cts', $this->viewlessContentTypes);
}
}
+
+ private function filterUnpublishedViewlessRelations(QueryBuilder $queryBuilder): void
+ {
+ $rootAlias = $queryBuilder->getRootAliases()[0];
+
+ // A relation embeds both the `fromContent` and the `toContent`. It must
+ // only be exposed when *both* ends are publicly visible, otherwise the
+ // relation leaks the existence of unpublished or viewless content.
+ $queryBuilder->join($rootAlias . '.fromContent', 'relation_from');
+ $queryBuilder->join($rootAlias . '.toContent', 'relation_to');
+ $queryBuilder->andWhere('relation_from.status = :status');
+ $queryBuilder->andWhere('relation_to.status = :status');
+
+ $queryBuilder->setParameter('status', Statuses::PUBLISHED);
+
+ //todo: Fix this when https://github.com/doctrine/orm/issues/3835 closed.
+ if ($this->viewlessContentTypes->isNotEmpty()) {
+ $queryBuilder->andWhere('relation_from.contentType NOT IN (:cts)');
+ $queryBuilder->andWhere('relation_to.contentType NOT IN (:cts)');
+ $queryBuilder->setParameter('cts', $this->viewlessContentTypes);
+ }
+ }
}
Mitigation Strategies
- Upgrade bolt/core to version 6.1.4 or later to enforce Doctrine ORM visibility filters on both ends of Relation queries.
- Restrict unauthenticated access to the /api/relations and /api/graphql endpoints at the reverse proxy or WAF layer if public API consumption is not required.
- Override API Platform resource security attributes for Bolt\Entity\Relation to require authentication (e.g., ROLE_ADMIN or IS_AUTHENTICATED_FULLY).
Remediation Steps:
- Run 'composer update bolt/core --with-dependencies' to update bolt/core to version 6.1.4 or higher.
- Clear and warm up the Symfony production cache using 'php bin/console cache:clear --env=prod'.
- Execute unit tests or verify via unauthenticated curl requests to '/api/relations' that relations linked to draft or viewless content are no longer returned.
References
- GitHub Security Advisory: GHSA-6358-jg5p-hmjj
- Bolt CMS Fix Commit: 577b2232209c9285143a2f505ca306416b38f3f9
- Bolt CMS Release 6.1.4
- Pull Request: Filter unpublished/viewless content from the public Relation API
- National Vulnerability Database: CVE-2026-77379
- CVE.org Record: CVE-2026-77379
- CVEProject cvelistV5 JSON Record: CVE-2026-77379
Read the full report for CVE-2026-77379 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)