Skip to content

Missing Cache-Control headers on API endpoints

Moderate
dan2k3k4 published GHSA-wm7m-w49g-jmvr Dec 5, 2025

Package

No package listed

Affected versions

< 05/12/2025

Patched versions

>= 05/12/2025

Description

The API endpoints, such as the one that retrieves private AI keys (/private-ai-keys), were missing standard HTTP Cache-Control headers.

This posed a risk as the server did not explicitly tell the client not to save the data, thus browsers and network proxies can automatically cache the response.

To fix this, the API response has added the following header: Cache-Control: no-store, no-cache, must-revalidate, private

This commit details the middleware that was implemented to address this issue.

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs

Credits