CVE-2026-34404: Nuxt og image Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-c7xp-q6q8-hg76
CWE-400 CWE-404
Published
Advisory Summary

CVE-2026-34404 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Nuxt og image libraries in the npm ecosystem. The issue involves nuxt og image is vulnerable to denial of service via unbounded image dimensions. Remediation is available by upgrading affected packages to version 6.2.5.

CVE-2026-34404 at a Glance

CVE Identifier CVE-2026-34404
GHSA Identifier GHSA-c7xp-q6q8-hg76
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Nuxt og image
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-34404

To remediate this vulnerability, upgrade all affected Nuxt og image dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nuxt-og-image fixed: 6.2.5
npm install nuxt-og-image@6.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls nuxt-og-image

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-34404, inspect your project dependencies using npm:

npm ls nuxt-og-image

Analyze the terminal output to locate any version of Nuxt og image in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.2.5), your application is affected.

Note: The npm ls nuxt-og-image command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Nuxt og image, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Product:** Nuxt OG Image **Version:** 6.1.2 **CWE-ID:** [CWE-404](https://cwe.mitre.org/data/definitions/404.html): 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_ <img width="974" height="663" alt="image" src="https://github.com/user-attachments/assets/ff625249-2e0d-4a03-a734-3a77fd0cbb81" /> After sending a HTTP-request, the test server's memory was exhausted. _Figure 2. Video memory exhausted error_ <img width="863" height="1033" alt="image" src="https://github.com/user-attachments/assets/66b5919a-f039-468e-812e-1f709c468287" /> ## Credits Researcher: Dmitry Prokhorov (Positive Technologies)

CVE-2026-34404 Affected Nuxt og image Versions

1 component(s)
Fixed Versions:
6.2.5
Product / Package Ecosystem Affected Versions Fixed Version
nuxt-og-image
npm
< 6.2.5
6.2.5

References

Frequently Asked Questions

What is CVE-2026-34404?
CVE-2026-34404 is a security vulnerability in Nuxt og image involving Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions under CWE-400: Uncontrolled Resource Consumption.
Which Nuxt og image versions are affected?
Affected versions include releases prior to 6.2.5 across affected packages: nuxt-og-image.
What version fixes CVE-2026-34404?
Upgrading to 6.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nuxt-og-image affected?
Yes, nuxt-og-image is affected in releases prior to 6.2.5. Upgrade your dependency to 6.2.5 or later.
What CWE is associated with CVE-2026-34404?
CVE-2026-34404 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2026-34404?
Run the dependency tree command: 'npm ls nuxt-og-image'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c7xp-q6q8-hg76",
  "modified" : "2026-04-06T16:39:48Z",
  "published" : "2026-03-31T23:25:53Z",
  "aliases" : [ "CVE-2026-34404" ],
  "summary" : "Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions",
  "details" : "**Product:** Nuxt OG Image \n**Version:** 6.1.2\n**CWE-ID:** [CWE-404](https://cwe.mitre.org/data/definitions/404.html): Improper Resource Shutdown or Release\n**Description:** Failure to limit the length and width of the generated image results in a denial of service.\n**Impact:** Denial of service\n**Exploitation condition:** An external user\n**Mitigation:** Implement a limitation on the width and length of the generated image.\n**Researcher:** Dmitry Prokhorov (Positive Technologies)\n\n## Research \nDuring the analysis of the nuxt-og-image package, which is shipped with the nuxt-seo package, a zero‑day vulnerability was discovered.\nThis 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.\n\n_Listing 1. The content of the configuration file `nuxt.config.ts`_ \n```\nexport default defineNuxtConfig({\n  modules: ['nuxt-og-image'],\n  devServer: {\n    host: 'web-test.local',\n    port: 3000\n  },\n  site: {\n    url: 'http://web-test.local:3000',\n  },\n  ogImage: {\n    fonts: [\n      'Inter:400', \n      'Inter:700'\n    ],\n  }\n})\n```\n\n## Vulnerability reproduction\nTo 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.\n\n_Listing 2. HTTP-request example_\n```\nGET /_og/d/og.png?width=20000&height=20000 HTTP/1.1\nHost: web-test.local:3000\n```\n\n_Figure 1. HTTP-response: denial-of-service error_\n<img width=\"974\" height=\"663\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ff625249-2e0d-4a03-a734-3a77fd0cbb81\" />\n\nAfter sending a HTTP-request, the test server's memory was exhausted.\n\n_Figure 2. Video memory exhausted error_\n<img width=\"863\" height=\"1033\" alt=\"image\" src=\"https://github.com/user-attachments/assets/66b5919a-f039-468e-812e-1f709c468287\" />\n\n\n## Credits\nResearcher: Dmitry Prokhorov (Positive Technologies)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nuxt-og-image"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nuxt-modules/og-image/security/advisories/GHSA-c7xp-q6q8-hg76"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34404"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nuxt-modules/og-image"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-404" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-31T23:25:53Z",
    "nvd_published_at" : "2026-03-31T22:16:18Z"
  }
}