VYPR
Medium severity6.5NVD Advisory· Published Jun 18, 2026· Updated Jun 18, 2026

NL Portal Backend Libraries: Document contents remained downloadable by any logged-in user (incomplete fix of CVE-2026-49463)

CVE-2026-54683

Description

Summary

A previous advisory (CVE-2026-49463 / GHSA-qpm9-h556-mwxm) reported that any logged-in user could download any document by its identifier, and stated this was fixed in 3.0.1. For the document-content part that fix was incomplete: documents remained downloadable by any authenticated user in 3.0.1 and 3.0.2, and the issue was only fully resolved in 3.0.3.

Relationship to

CVE-2026-49463

This advisory is a follow-up to CVE-2026-49463. That advisory described the problem on the GraphQL getDocumentContent query and listed nl.nl-portal:documenten-api as fixed in 3.0.1. In practice:

  • The 3.0.1 change added an authentication parameter to the GraphQL query but never used it, so the query kept returning any document regardless of ownership.
  • The same flaw also existed on a REST endpoint that the original advisory did not cover, and that endpoint was not changed in 3.0.1 or 3.0.2.

Both were removed in 3.0.3, which is the first release where the document-content issue is actually fixed.

What was wrong

A document's contents could be fetched in two ways, and neither verified the caller's relationship to the document:

  • a REST endpoint: GET /api/documentapi/{documentapi}/document/{documentId}/content
  • a GraphQL query: getDocumentContent

Being logged in was required, but that was the *only* check — there was no per-document authorization. (A security rule meant to guard the REST endpoint also pointed at the wrong URL and never took effect; even if it had, it would only have required a login, not ownership.)

Proof of concept

While logged in as any portal user, request a document that belongs to someone else:

GET /api/documentapi/openzaak/document//content

The server returns the document contents (HTTP 200), even though the caller has no relationship to that document. The getDocumentContent GraphQL query behaves the same way.

Impact

A logged-in user could read the contents of documents belonging to other people. In a citizen or business portal these documents can contain sensitive personal information. To exploit this, an attacker needs a valid login and a target document's identifier. Document identifiers are random and hard to guess, which limits — but does not prevent — abuse, since identifiers can leak through other channels.

Patches

Fixed in 3.0.3. Both the REST endpoint and the GraphQL query were removed entirely. Document contents can now only be downloaded through endpoints that first confirm the caller is allowed to see the document:

  • one that requires the caller to have a role on the related case (*zaak*);
  • one that requires the caller to own the message (*bericht*) the document is attached to.

If your application relied on the removed endpoints, switch to one of these case- or message-scoped download endpoints.

Workarounds

If you cannot upgrade immediately, block the path GET /api/documentapi/*/document/*/content and the getDocumentContent GraphQL query at your gateway or reverse proxy, and remove any client code that calls them. There is no setting that adds the missing per-document check in affected versions; upgrading (or removing the endpoints) is the only complete fix.

References

  • Related advisory: GHSA-qpm9-h556-mwxm (CVE-2026-49463)
  • Fix commits: 6e738a87 (GraphQL query removed, PR #690), e326e6db (REST endpoint removed)
  • Affected module: nl.nl-portal:documenten-api

Credits

Reported by Ray Sabee, https://whitehatsecurity.nl/ (independent security researcher). Github handle: raysabee

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

1

Patches

Vulnerability mechanics

Root cause

"Missing per-document authorization check in both the REST endpoint and GraphQL query for document content retrieval."

Attack vector

An attacker with a valid portal login can read any document by sending a GET request to `/api/documentapi/openzaak/document/<another-users-document-id>/content` or by executing the `getDocumentContent` GraphQL query with a target document's UUID [ref_id=1]. The server returns the document contents (HTTP 200) without verifying the caller's relationship to the document. Document identifiers are random UUIDs, which limits but does not prevent abuse since identifiers can leak through other channels [ref_id=1].

Affected code

The vulnerability exists in the `nl.nl-portal:documenten-api` module. Two endpoints lacked per-document authorization: the REST endpoint `GET /api/documentapi/{documentapi}/document/{documentId}/content` and the GraphQL query `getDocumentContent`. The GraphQL query was implemented in `DocumentContentQuery.kt` and the REST endpoint in `DocumentContentResourceIntegrationTest.kt` (the resource class itself was removed in patch `[patch_id=6474069]`).

What the fix does

The fix in version 3.0.3 removes both vulnerable endpoints entirely rather than adding authorization checks [ref_id=1]. Patch `[patch_id=6474068]` deletes the `DocumentContentQuery` GraphQL controller, its schema definition, the `DocumentContent` data class, and the `getDocumentContent` service method. Patch `[patch_id=6474069]` removes the REST endpoint and its integration tests. Document contents can now only be downloaded through endpoints that first confirm the caller has a role on the related case (zaak) or owns the message (bericht) the document is attached to [ref_id=1].

Preconditions

  • authAttacker must have a valid login to the portal.
  • inputAttacker must know or guess the target document's UUID identifier.

Reproduction

While logged in as any portal user, send: `GET /api/documentapi/openzaak/document/<another-users-document-id>/content`. The server returns the document contents (HTTP 200) even though the caller has no relationship to that document [ref_id=1].

Generated on Jun 18, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.