CVE-2026-102527: Nuxt OG Image cache poisoning through derivable cache keys on unsigned dynamic image routes
Vendor: Nuxt Product: Nuxt OG Image Version: 6.2.5 Description: Due to the specifics of caching and key generation in the Open Graph image cache created by the module, an unauthenticated attacker can modify the content of the image (for example, the title parameter) that is delivered to the user.
Published Oct 15, 2026
Affected packages
nuxt-og-image
- Ecosystem
- npm
- Affected
- >= 6.2.5, < 6.7.0
- Fixed in
- 6.7.0
- Check
npm ls nuxt-og-image
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Vendor: Nuxt Product: Nuxt OG Image Version: 6.2.5 Description: Due to the specifics of caching and key generation in the Open Graph image cache created by the module, an unauthenticated attacker can modify the content of the image (for example, the title parameter) that is delivered to the user. Impact: Content Spoofing Vulnerable component: route /_og/d/*.png Exploitation conditions: Access to the application Mitigation: Upgrade to 6.7.2 and set a sufficiently secure secret in config ogImage Researcher: Dmitry Vanin (Positive Technologies)
Research
During the previous vulnerability research, it was discovered that version 6.2.5 changed the mechanism for generating cache indexes; it now takes into account the parameters passed during image generation.
However, the image is still generated from data transmitted to the attacker.
_Listing 1. New code for generating indexes in cache_
export function resolvePathCacheKey(e: H3Event, path: string, resolvedOptions?: Record<string, any>) {
const siteConfig = getSiteConfig(e, {
resolveRefs: true,
})
const basePath = withoutTrailingSlash(withoutLeadingSlash(normalizeKey(path)))
const hashParts: any[] = [
basePath,
import.meta.prerender ? '' : siteConfig.url,
]
// Hash resolved options (not raw query string) so unknown/extra query params
// cannot produce unique cache keys and bypass the cache.
if (resolvedOptions)
hashParts.push(hash(resolvedOptions))
return [
(!basePath || basePath === '/') ? 'index' : basePath,
hash(hashParts),
].join(':')
}In this case, basePath is obtained from the _path parameter, resolvedOptions are the normalized settings of the component, for example:
_Listing 2. An example of resolvedOptions_
{"emojis":"noto","extension":"png","width":1200,"height":600,"cacheMaxAgeSeconds":259200,"component":"OgImageDefaultImageTakumi"}From the analysis of resolvedOptions, it was concluded that, in general, all parameters are known either from the direct link to the OG Image or from the server response.
Vulnerability reproduction
- Find the route to OG Image.
_Figure 1. Demonstration of finding the route to OG Image_
- Retrieve parameters from the server’s response, especially
cacheMaxAgeSeconds(cache-controlheader,s-maxagekey), the other parameters are known from the meta tags as well as from thec_<component name>parameter.
_Figure 2. Obtaining parameters_
- Generate a cache key using a script.
_Listing 3. Srcipt_
import {hash} from "ohash";
var url = "https://contoso.com"
var obj = JSON.parse(`{"emojis":"noto","extension":"png","width":1200,"height":600,"cacheMaxAgeSeconds":259200,"component":"OgImageBlogPostTakumi"}`)
var basePath = '/'
var hashParts = [
basePath,
url
]
if (obj)
hashParts.push(hash(obj))
console.log([
(!basePath || basePath === '/') ? 'index' : basePath,
hash(hashParts),
].join(':'))- Repeat the steps as in the vulnerability 1, but transmit the obtained
cacheKeyin addition. - Thus, the same result as in the vulnerability 1 was obtained.
_Figure 4. Server response_
Credits
Researcher: Dmitry Vanin (Positive Technologies)
References
- https://github.com/nuxt-modules/og-image/security/advisories/GHSA-2x6f-rp82-ppmj
- https://nvd.nist.gov/vuln/detail/CVE-2026-102527
- https://github.com/nuxt-modules/og-image/pull/638
- https://github.com/nuxt-modules/og-image/commit/e6c5b53ce7f434ab8cbc91298dccfb2b515c56a5
- https://github.com/nuxt-modules/og-image/releases/tag/v6.7.0
- https://github.com/advisories/GHSA-2x6f-rp82-ppmj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-61793
Nuxt OG Image has unauthenticated SSRF via `fonts[].path` URL parameter
medium6.9Sep 17, 2026CVE-2026-44589
nuxt-og-image SSRF — bypass of GHSA-pqhr-mp3f-hrpp / v6.2.5 fix (IPv6 + redirect)
low3.7May 7, 2026CVE-2026-34404
Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions
medium6.9Mar 31, 2026CVE-2026-34405
Nuxt OG Image is vulnerable to reflected XSS via query parameter injection into HTML attributes
medium6.1Mar 31, 2026GHSA-pqhr-mp3f-hrpp
Nuxt OG Image vulnerable to Server-Side Request Forgery via user-controlled parameters
medium5.3Mar 31, 2026
