Skip to main content

nuxt-og-image CVE-2026-44589

| EUVDEUVD-2026-30364 LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-07 https://github.com/nuxt-modules/og-image GHSA-c2rm-g55x-8hr5
3.7
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious URL
  2. Delivery
    Application renders OG image with user URL
  3. Exploit
    isBlockedUrl validator passes IPv6-mapped or cluster address
  4. Execution
    $fetch connects to internal IP
  5. Persist
    Redirect (Class 2) or direct response (Class 1)
  6. Impact
    Internal service response leaked via OG image metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions are required for Class 1 (IPv6 bypass): remote unauthenticated attackers can exploit any production deployment of nuxt-og-image 6.2.5-6.4.8 that accepts user-influenced URLs in OG image components (the default and documented pattern). The condition that *limits* Class 1 exploitation is that the target internal IP must be routable from the OG rendering context: [::ffff:7f00:1] reaches 127.0.0.1 on single-stack and dual-stack hosts, while IPv6 cluster ranges (fec0::, 5f00::, 3fff::, 64:ff9b:1::) require the rendering service to be deployed in a Kubernetes cluster or NAT64 network. Class 2 (redirect bypass) requires that at least one allowed external origin (CDN, S3, GCS, Azure, or attacker-controlled domain that passed the denylist) be able to return HTTP 30x responses with a Location header pointing to an internal IP. The primary limiting factor for both classes is that the rendering service must have network access to the target internal IP (a given in containerized and self-hosted deployments, but may be restricted in some cloud-function environments). No authentication, user interaction, or non-default configuration is required; production builds automatically enforce isBlockedUrl() for all image URLs.

Impact

This vulnerability carries moderate real-world risk despite the low CVSS score (3.7/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N). The high attack complexity reflects the requirement to craft specific IPv6 addresses or set up redirect chains, but these are fully achievable without authentication or user interaction. The confidentiality impact is understated by CVSS: confirmed exploitation reaches 127.0.0.1 on single-stack hosts and cluster-internal addresses on Kubernetes/dual-stack networks, potentially exfiltrating admin dashboards, internal APIs, Redis UIs, and IMDS metadata. The AC:H rating assumes attackers must guess valid internal services; in practice, Kubernetes and self-hosted deployments have predictable service layouts. EPSS would likely be 40-60% given the popularity of nuxt-og-image (top-2 Nuxt module by GitHub stars, shipped in Nuxt UI templates) and the straightforward exploit chains. The vulnerability is not actively exploited at time of analysis (no KEV status), but no special configuration is required beyond the default production build (!import.meta.dev), making it a practical priority for Nuxt applications handling user-influenced URLs in OG components. The prior advisory (GHSA-pqhr-mp3f-hrpp, v6.2.5 patch) created false confidence; this represents a separate bypass with independent gaps rather than a regression.

Exploit ScenarioDerived

An attacker crafts a Nuxt application link with a malicious OG image URL parameter, e.g., https://vulnerable-app.com/article?og_image=http://[::ffff:7f00:1]:8080/admin-dashboard. When the application renders the OG image, the isBlockedUrl() validator fails to recognize the IPv6-mapped loopback address, allowing the request to proceed. The $fetch call connects to 127.0.0.1:8080 (via the IPv6 stack on dual-stack hosts or directly on IPv4-only hosts) and retrieves the admin dashboard HTML. Alternatively, the attacker supplies og_image=http://s3.amazonaws.com/attacker-bucket/redirect-to-loopback, which passes validation as an allowed S3 origin; when fetched, S3 returns a 302 redirect to http://192.168.1.100:6379/ (internal Redis), which is followed by default ofetch behavior, exposing the Redis UI response. In both scenarios, the rendered OG image embeds fragments of internal service responses, leaked to the attacker via og:image meta tags or preview generation.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Server-Side Request Forgery (SSRF) in nuxt-og-image 6.2.5 through 6.4.8 allows remote attackers to bypass the incomplete IPv6 denylist and redirect validation, reaching internal IP addresses and services through incomplete IPv6 prefix filtering and unauthenticated HTTP redirect following. The vulnerability affects the OG image rendering component used by Nuxt applications, enabling attackers to leak internal service responses by injecting crafted IPv6-mapped addresses or chaining external redirects to internal targets.

RemediationAI

Upgrade nuxt-og-image to version 6.4.9 or later immediately. This release addresses both the incomplete IPv6 prefix list and the redirect validation gap. For applications unable to upgrade immediately, three interim mitigations are available with trade-offs: (1) Disable user-influenced URLs in OG components by hardcoding values or sourcing from a trusted whitelist only (maximum security, requires content refactoring); (2) Implement a custom fetch wrapper that rejects all 30x responses by passing redirect: 'manual' to ofetch and explicitly rejecting 3xx status codes (closes redirect bypass, requires patching the OG image component logic); (3) Network-level restriction by isolating the OG rendering service (Vercel Functions, self-hosted worker, or server route) in a container or VPC with egress policies that block RFC 1918, 127.0.0.0/8, 169.254.0.0/16, and cluster-internal subnets (defense-in-depth, adds operational overhead). Refer to the GitHub advisory at https://github.com/nuxt-modules/og-image/security/advisories/GHSA-c2rm-g55x-8hr5 for patch confirmation and related CVE-2026-44589 updates.

Affected VersionsENISA

og-image 6.2.5, < 6.4.9

Affected Packages

npm nuxt-og-image fix: 6.4.9
euvd og_image_6_2_5 fix: 6.4.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nuxt-og-image is the official OG image generator for Nuxt applications, processing user-influenced URLs in OG image components through the isBlockedUrl() validator in dist/runtime/server/og-image/core/plugins/imageSrc.js. The vulnerability stems from two distinct gaps: (1) The hand-rolled IPv6 prefix validation checks only four prefixes (::1, fc00::/7, fd00::/8, fe80::/10) against RFC-defined private ranges, missing fec0::/10 (RFC 3879 site-local), 5f00::/16 (RFC 9602 SRv6), 3fff::/20 (RFC 9637 IPv6 documentation), and 64:ff9b:1::/48 (RFC 8215 NAT64 local-use). Most critically, IPv6-mapped IPv4 addresses in hex form ([::ffff:7f00:1]) bypass the regex-based dotted-quad filter (RE_MAPPED_V4), directly reaching 127.0.0.1 on single-stack IPv4 hosts. (2) The downstream $fetch() call uses ofetch with default redirect: 'follow', processing 30x responses without re-validating the redirect target against the denylist. CWE-918 (SSRF) is the root cause class, exacerbated by incomplete IP address taxonomy and missing redirect-boundary validation.

Know when Redis gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionGitHub Advisory

Summary

The isBlockedUrl() denylist introduced in nuxt-og-image@6.2.5 to remediate GHSA-pqhr-mp3f-hrpp (Dmitry Prokhorov / Positive Technologies, March 2026) is incomplete. The patch advisory states "Decimal/hexadecimal IP encoding bypasses are also handled" - that part is true (Node's WHATWG URL parser canonicalizes those forms before validation), but the v6.2.5 implementation misses two independent surfaces in the latest release 6.4.8:

  1. IPv6 prefix list is incomplete. The IPv6 branch checks only bare === "::1" || startsWith("fc") || startsWith("fd") || startsWith("fe80"). It misses:
  • [::ffff:7f00:1] - IPv6-mapped IPv4 loopback in pure-hex form (RE_MAPPED_V4 regex requires dotted-quad). Reaches 127.0.0.1 on a single-stack-IPv4 host with no other primitive needed.
  • [fec0::/10] (RFC 3879 site-local - deprecated but still routable on legacy networks)
  • [5f00::/16] (RFC 9602 SRv6 SIDs)
  • [3fff::/20] (RFC 9637 IPv6 documentation v2)
  • [64:ff9b:1::/48] (RFC 8215 NAT64 local-use, including embedded IPv4 loopback [64:ff9b:1::7f00:1])
  1. No redirect re-validation. isBlockedUrl runs once on the initial <img src>. The subsequent $fetch(decodedSrc, ...) (ofetch, default redirect-follow) follows 30x responses with no second-pass validation. Any allowed origin that returns a 302 to an internal IP - S3 redirect rules, GCS, Azure, CloudFront, any user-content CDN where the attacker can place a single redirect - completes the SSRF.

The net result is that the v6.2.5 SSRF advisory is bypassable in two distinct ways. The same root family as #29 / #38 (ipx) but in a different code path with different gaps - nuxt-og-image does not delegate to ipx, it ships its own validator, and that validator has fresh issues that survived the prior fix.

Affected

PackageVersionRole
nuxt-og-image6.4.8 (latest)default OG-image generator for Nuxt apps
@nuxtjs/og-image (alias)samere-export, same code path

The vulnerable code lives in dist/runtime/server/og-image/core/plugins/imageSrc.js and is enforced for every <img src> (and style="background-image: url(...)") inside an OG image component, on production builds (!import.meta.dev).

Vulnerable code (imageSrc.js, verbatim)

js
function isPrivateIPv4(a, b) {
  if (a === 127) return true;
  if (a === 10) return true;
  if (a === 172 && b >= 16 && b <= 31) return true;
  if (a === 192 && b === 168) return true;
  if (a === 169 && b === 254) return true;
  if (a === 0) return true;
  return false;
}
function isBlockedUrl(url) {
  let parsed;
  try { parsed = new URL(url); } catch { return true; }
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return true;
  const hostname = parsed.hostname.toLowerCase();
  const bare = hostname.replace(RE_IPV6_BRACKETS, "");
  if (bare === "localhost" || bare.endsWith(".localhost")) return true;
  const mappedV4 = bare.match(RE_MAPPED_V4);   // /^::ffff:(\d+\.\d+\.\d+\.\d+)$/
  const ip = mappedV4 ? mappedV4[1] : bare;
  const parts = ip.split(".");
  if (parts.length === 4 && parts.every((p) => RE_DIGIT_ONLY.test(p))) {
    /* dotted-decimal IPv4 path */
  }
  if (RE_INT_IP.test(ip)) {
    /* single-integer IPv4 path */
  }
  if (bare === "::1" || bare.startsWith("fc") || bare.startsWith("fd") || bare.startsWith("fe80"))
    return true;                                  // ← gap: only 4 IPv6 prefixes
  return false;                                   // ← everything else is "public"
}

// Then:
async function doResolveSrcToBuffer(src, kind, ctx) {
  ...
  if (!import.meta.dev && isBlockedUrl(decodedSrc)) {
    return { blocked: true };
  }
  const buffer = await $fetch(decodedSrc, {     // ← follows 30x by default
    responseType: "arrayBuffer",
    timeout: fetchTimeout,
  });
  ...
}

Two distinct issues:

  • The IPv6 prefix list is hand-rolled (fc, fd, fe80, ::1) and inherits no taxonomy from ipaddr.js or any RFC table.
  • $fetch is ofetch, which wraps Node fetch() with default redirect: "follow". The validator does not run on the redirect target.

Reproducer (verbatim, no host privilege)

End-to-end test of isBlockedUrl on a corpus of internal-IP forms, paired with empirical fetch() confirming which forms actually reach loopback. Verbatim output:

  isBlockedUrl?  fetch reaches loopback?  url
  -------------  -----------------------  ---
  ✓ blocked      YES                      http://127.0.0.1:8765/             (control: dotted-decimal loopback)
  ✓ blocked      YES                      http://localhost:8765/             (control)
  ✓ blocked      no(ECONNREFUSED)         http://[::1]:8765/                 (control: IPv6 loopback)
  ✓ blocked      no(EHOSTUNREACH)         http://169.254.169.254:8765/       (control: AWS IMDS)
  ✓ blocked      YES                      http://2130706433:8765/            (control: decimal-int IPv4)
  ✓ blocked      YES                      http://0x7f000001:8765/            (control: hex-int IPv4)
  ✓ blocked      YES                      http://0177.0.0.1:8765/            (control: octal - URL parser canonicalizes)
  ✓ blocked      YES                      http://127.1:8765/                 (control: shorthand - URL parser canonicalizes)

  ✗ NOT blocked  YES                      http://[::ffff:7f00:1]:8765/       (BYPASS: IPv6-mapped, hex form)
  ✗ NOT blocked  no(unreachable)          http://[fec0::1]:8765/             (BYPASS: RFC 3879 site-local)
  ✗ NOT blocked  no(unreachable)          http://[5f00::1]:8765/             (BYPASS: RFC 9602 SRv6)
  ✗ NOT blocked  no(unreachable)          http://[3fff::1]:8765/             (BYPASS: RFC 9637 docs)
  ✗ NOT blocked  no(unreachable)          http://[64:ff9b:1::1]:8765/        (BYPASS: RFC 8215 NAT64)
  ✗ NOT blocked  no(unreachable)          http://[64:ff9b:1::7f00:1]:8765/   (BYPASS: NAT64 + embedded loopback)

The first six bypass rows say "✗ NOT blocked" - that is isBlockedUrl returning false (i.e., "this URL is fine to fetch") for each of those addresses. The "fetch reaches loopback" column shows that [::ffff:7f00:1] actually round-trips to 127.0.0.1 on a single-stack-IPv4 dev box; the four cluster ranges are unreachable on the dev box but succeed on dual-stack / k8s / NAT64 / SRv6 networks where any of these prefixes is internally bound.

The "control" rows confirm the bypass set is minimal - the validator catches the obvious cases. The bypasses are the cases the prefix list forgot.

Class 2: redirect amplifier

$fetch(url, { responseType: "arrayBuffer", timeout }) follows 30x by default. Confirmed empirically - ofetch('http://lab.menna.website/test/redirect-to-loopback') (where lab.menna.website returns 302 Location: http://127.0.0.1/) ends with <no response> fetch failed after the connect attempt to 127.0.0.1:80, proving the redirect was followed. On a target where the redirect destination has a service bound, the bytes round-trip back through the OG renderer.

Same primitive as #29 / #38 (ipx redirect bypass), in a different validator. The fix recommendations for #29 also apply here, with the same trade-offs.

Impact

A Nuxt application that uses nuxt-og-image (the official-recommended OG generator) and includes any user-influenced URL in an OG component is vulnerable to SSRF that returns the bytes of the internal response as part of the rendered OG image:

  • Class 1 directly: <img src="http://[::ffff:7f00:1]:PORT/path"> reaches 127.0.0.1 on the OG worker. If the dev's deployment has anything bound to loopback (admin dashboards, internal HTTP-RPC, Redis HTTP UI, anything running alongside the function on the same machine in self-hosted setups), it leaks.
  • Class 1 cluster: the IPv6 cluster ranges trigger only on dual-stack / k8s / NAT64 networks - but those are exactly the production targets where SSRF matters most.
  • Class 2 redirect: any allowed CDN with a redirect rule extends the reach to all RFC 1918 / loopback / link-local space.

nuxt-og-image is the OG-image module recommended in Nuxt's official documentation; it is shipped with Nuxt UI templates and is one of the top-2 Nuxt modules by GitHub stars. The user-facing primitive in real apps is "title/avatar comes from a request param" - exactly the same <NuxtLink to="/og?avatar=..."> pattern Nuxt docs encourage.

Suggested fix

Three non-exclusive options:

  1. Replace the hand-rolled IPv6 prefix list with ipaddr.js's range() predicate (or equivalent), then either:
  • explicitly deny the four cluster ranges that ipaddr.js currently misses (fec0::/10, 5f00::/16, 3fff::/20, 64:ff9b:1::/48), or
  • wait for the ipaddr.js upstream patch (see Vercel #27 - same gap, separately disclosed) and bump.
  • In any case, also catch [::ffff:7f00:1] either by widening RE_MAPPED_V4 or by classifying any ::ffff: address as the embedded IPv4.
  1. Pass redirect: "manual" in $fetch defaults and reject 3xx. (Compare astro:assets, which already does this - await fetch(url, { redirect: "manual" }) and explicit 3xx-rejection.)
  2. Pin the validated IP to the connection. Resolve the hostname once during validation, then pass a custom undici.Agent with connect.lookup returning the resolved IP only. This closes both the IPv6 bypass class (the resolved IP is checked again) and the redirect class (post-30x lookup is forced to the original IP). Reference: request-filtering-agent on npm.

(2) alone closes Class 2. (1) alone closes Class 1. (3) closes both with one change.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Redis

View all
CVE-2026-48172 CRITICAL POC
10.0 May 21

Privilege escalation to root in the LiteSpeed User-End cPanel Plugin (versions 2.3 through before 2.4.5) lets attackers

CVE-2025-49844 CRITICAL POC
9.9 Oct 03

UAF in Redis 8.2.1 via crafted Lua scripts by authenticated users. EPSS 12.4%. Patch available.

CVE-2022-0543 CRITICAL POC
10.0 Feb 18

It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific

CVE-2018-11218 CRITICAL POC
9.8 Jun 17

Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis before 3.2.12, 4.x before 4.0.10,

CVE-2025-46817 HIGH POC
7.0 Oct 03

Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user

CVE-2015-4335 CRITICAL POC
10.0 Jun 09

Redis before 2.8.21 and 3.x before 3.0.2 allows remote attackers to execute arbitrary Lua bytecode via the eval command.

CVE-2016-8339 CRITICAL POC
9.8 Oct 28

A buffer overflow in Redis 3.2.x prior to 3.2.4 causes arbitrary code execution when a crafted command is sent. Rated cr

CVE-2026-77602 CRITICAL POC
9.9 Sep 23

Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in

CVE-2026-27574 CRITICAL POC
9.9 Feb 21

Code injection in OneUptime monitoring via custom JS monitor using vm module. PoC and patch available.

CVE-2026-84372 CRITICAL POC
9.8 Sep 01

RESP protocol command injection in Predis, the popular PHP client for Redis and Valkey, affects versions 3.0.0-RC1 throu

CVE-2021-31649 CRITICAL POC
9.8 Jun 24

In applications using jfinal 4.9.08 and below, there is a deserialization vulnerability when using redis,may be vulnerab

CVE-2020-11981 CRITICAL POC
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy