GHSA-pqhr-mp3f-hrpp: Nuxt og image Nuxt OG Image Vulnerable To Vulnerability

MODERATE
CVSS 5.3
CWE-918
Published
Advisory Summary

GHSA-pqhr-mp3f-hrpp is a MODERATE (CVSS 5.3) nuxt og image vulnerable to vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Nuxt og image libraries in the npm ecosystem. The issue involves nuxt og image vulnerable to server-side request forgery via user-controlled parameters. Remediation is available by upgrading affected packages to version 6.2.5.

GHSA-pqhr-mp3f-hrpp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-pqhr-mp3f-hrpp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Nuxt og image
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-pqhr-mp3f-hrpp

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 GHSA-pqhr-mp3f-hrpp, 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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.2.5 **CWE-ID:** [CWE-918](https://cwe.mitre.org/data/definitions/918.html): Server-Side Request Forgery ## Description The image generation endpoint (`/_og/d/`) accepts user-controlled parameters that are passed to the server-side renderer without proper validation or filtering. An attacker can trigger server-side requests to internal network addresses through multiple vectors. ## Impact - Scanning internal ports and services inaccessible from the outside - Reading sensitive data from cloud infrastructure metadata services (tokens, credentials) when verbose error output is enabled ## Attack Vectors Three distinct vectors were identified, all exploiting the same underlying lack of URL validation: ### Vector 1: CSS `background-image` injection via `style` parameter ``` GET /_og/d/og.png?style=background-image:+url('http://127.0.0.1:8888/secret') ``` ### Vector 2: `<img src>` injection via `html` parameter ``` GET /_og/d/og.png?html=<img src="http://127.0.0.1:8888/secret"> ``` When verbose errors are enabled, the response content is leaked in base64-encoded error messages. ### Vector 3: SVG `<image href>` injection via `html` parameter ``` GET /_og/d/og.png?html=<svg><image href="http://127.0.0.1:8888/secret"></svg> ``` ## Mitigation Fixed in v6.2.5. The image source plugin now blocks requests to private IP ranges (IPv4/IPv6), loopback addresses, link-local addresses, and cloud metadata endpoints. Decimal/hexadecimal IP encoding bypasses are also handled. ## Credits Researcher: Dmitry Prokhorov (Positive Technologies)

GHSA-pqhr-mp3f-hrpp 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 GHSA-pqhr-mp3f-hrpp?
GHSA-pqhr-mp3f-hrpp is a security vulnerability in Nuxt og image involving Nuxt OG Image vulnerable to Server-Side Request Forgery via user-controlled parameters under CWE-918: Server-Side Request Forgery (SSRF).
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 GHSA-pqhr-mp3f-hrpp?
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 is the CVSS score of GHSA-pqhr-mp3f-hrpp?
GHSA-pqhr-mp3f-hrpp has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-pqhr-mp3f-hrpp?
GHSA-pqhr-mp3f-hrpp is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for GHSA-pqhr-mp3f-hrpp?
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-pqhr-mp3f-hrpp",
  "modified" : "2026-03-31T23:26:29Z",
  "published" : "2026-03-31T23:26:29Z",
  "aliases" : [ ],
  "summary" : "Nuxt OG Image vulnerable to Server-Side Request Forgery via user-controlled parameters",
  "details" : "**Product:** Nuxt OG Image\n**Version:** < 6.2.5\n**CWE-ID:** [CWE-918](https://cwe.mitre.org/data/definitions/918.html): Server-Side Request Forgery\n\n## Description\n\nThe image generation endpoint (`/_og/d/`) accepts user-controlled parameters that are passed to the server-side renderer without proper validation or filtering. An attacker can trigger server-side requests to internal network addresses through multiple vectors.\n\n## Impact\n\n- Scanning internal ports and services inaccessible from the outside\n- Reading sensitive data from cloud infrastructure metadata services (tokens, credentials) when verbose error output is enabled\n\n## Attack Vectors\n\nThree distinct vectors were identified, all exploiting the same underlying lack of URL validation:\n\n### Vector 1: CSS `background-image` injection via `style` parameter\n\n```\nGET /_og/d/og.png?style=background-image:+url('http://127.0.0.1:8888/secret')\n```\n\n### Vector 2: `<img src>` injection via `html` parameter\n\n```\nGET /_og/d/og.png?html=<img src=\"http://127.0.0.1:8888/secret\">\n```\n\nWhen verbose errors are enabled, the response content is leaked in base64-encoded error messages.\n\n### Vector 3: SVG `<image href>` injection via `html` parameter\n\n```\nGET /_og/d/og.png?html=<svg><image href=\"http://127.0.0.1:8888/secret\"></svg>\n```\n\n## Mitigation\n\nFixed in v6.2.5. The image source plugin now blocks requests to private IP ranges (IPv4/IPv6), loopback addresses, link-local addresses, and cloud metadata endpoints. Decimal/hexadecimal IP encoding bypasses are also handled.\n\n## Credits\n\nResearcher: Dmitry Prokhorov (Positive Technologies)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A: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-pqhr-mp3f-hrpp"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nuxt-modules/og-image"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-31T23:26:29Z",
    "nvd_published_at" : null
  }
}