Executive brief
Nuxt OG Image is a tool used to automatically generate social media preview images for websites. A vulnerability in this tool allows an attacker to crash the website's server or make it unresponsive by requesting images with extremely large dimensions. This can lead to a total service outage, preventing legitimate users from accessing the site.
Technical details
A Denial of Service (DoS) vulnerability exists in the Nuxt OG Image module due to uncontrolled resource consumption. The image-generation component, accessible via the /_og/d/ or /og-image/ endpoints, fails to validate or restrict the 'width' and 'height' parameters provided in the query string. An unauthenticated remote attacker can exploit this by sending a crafted HTTP GET request with excessively large dimensions (e.g., 20000x20000), leading to memory exhaustion and CPU spikes on the server. This issue is fixed in version 6.2.5 by implementing limits on generated image dimensions.
Affected products
- Nuxt (nuxt-modules) og-image < 6.2.5
Timeline
- 2026-03-28: advisory: GitHub security advisory published
- 2026-03-31: disclosed: CVE published to NVD
- 2026-03-31: patched: Fix released in version 6.2.5