Vulnerability GHSA-c7xp-q6q8-hg76

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
6 months ago
March 31, 2026 at 11:25 PM UTC
Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions
0.0.1 - 6.2.4
0.0.1 - 6.2.4

Summary

Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions

Details

Product: Nuxt OG Image Version: 6.1.2 CWE-ID: CWE-404: Improper Resource Shutdown or Release Description: Failure to limit the length and width of the generated image results in a denial of service. Impact: Denial of service Exploitation condition: An external user Mitigation: Implement a limitation on the width and length of the generated image. Researcher: Dmitry Prokhorov (Positive Technologies)

Research

During the analysis of the nuxt-og-image package, which is shipped with the nuxt-seo package, a zero‑day vulnerability was discovered. This research revealed that the image‑generation component by the URI: /_og/d/ (and, in older versions, /og-image/) contains a Denial of Service (DoS) vulnerability. The issue arises because there is no restriction on the width and height parameters of the generated image. The vulnerability was reproduced using the standard configuration and the default templates.

Listing 1. The content of the configuration file nuxt.config.ts

export default defineNuxtConfig({
  modules: ['nuxt-og-image'],
  devServer: {
    host: 'web-test.local',
    port: 3000
  },
  site: {
    url: 'http://web-test.local:3000',
  },
  ogImage: {
    fonts: [
      'Inter:400', 
      'Inter:700'
    ],
  }
})

Vulnerability reproduction

To demonstrate the proof‑of‑concept, a request should be sent with the increased width and height parameters. This will cause a delay and exhaust the server’s resources during image generation.

Listing 2. HTTP-request example

GET /_og/d/og.png?width=20000&height=20000 HTTP/1.1
Host: web-test.local:3000

Figure 1. HTTP-response: denial-of-service error image

After sending a HTTP-request, the test server's memory was exhausted.

Figure 2. Video memory exhausted error image

Credits

Researcher: Dmitry Prokhorov (Positive Technologies)

Impacted packages

Timeline

Published
6 months ago
March 31, 2026 at 11:25 PM UTC
Fixed (6.2.5)
6 months ago
March 26, 2026 at 03:40 PM UTC
Last Modified
6 months ago
April 06, 2026 at 04:48 PM UTC