Lookup for vulnerable packages by Package URL.

Purlpkg:npm/elysia@1.3.8
Typenpm
Namespace
Nameelysia
Version1.3.8
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version1.4.27
Latest_non_vulnerable_version1.4.27
Affected_by_vulnerabilities
0
url VCID-3drv-bbm3-uqay
vulnerability_id VCID-3drv-bbm3-uqay
summary
Elysia affected by arbitrary code injection through cookie config
Arbitrary code execution from cookie config. If dynamic cookies are enabled (ie there exists a schema for cookies), the cookie config is injected into the compiled route without first being sanitised.

Availability of this exploit is generally low, as it requires write access to either the Elysia app's source code (in which case the vulnerability is meaningless) or write access to the cookie config (perhaps where it is assumed to be provisioned by the environment). 

However when combined with GHSA-hxj9-33pp-j2cc, this vulnerability allows for a full RCE chain.

### Impact
- aot enabled (default)
- cookie schema passed to route
- Cookie config controllable eg. via env

Example of vulnerable code
```js
new Elysia({
	cookie: {
		secrets: `' + console.log('pwned from secrets') + '`
	},
})
	.get("/", () => "hello world", {
		cookie: t.Cookie({
			foo: t.Any(),
		}),
	})
```

POC: https://github.com/sportshead/elysia-poc

### Patches
Patched by 1.4.17 (https://github.com/elysiajs/elysia/pull/1564)

Reference commit:
- https://github.com/elysiajs/elysia/pull/1564/commits/26935bf76ebc43b4a43d48b173fc853de43bb51e
- https://github.com/elysiajs/elysia/pull/1564/commits/3af978663e437dccc6c1a2a3aff4b74e1574849e

### Workarounds
Sanitize cookie-related env input

```typescript
const overrideUnsafeQuote = (value: string) =>
	// '`' + value + '`'
	'`' + value.replace(/'/g, '\\`').replace(/\${/g, '$\\{') + '`'
```
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2025-66457
reference_id
reference_type
scores
0
value 0.00085
scoring_system epss
scoring_elements 0.2464
published_at 2026-05-29T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2025-66457
1
reference_url https://github.com/elysiajs/elysia
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/elysiajs/elysia
2
reference_url https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-12-12T19:37:53Z/
url https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e
3
reference_url https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-12-12T19:37:53Z/
url https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e
4
reference_url https://github.com/elysiajs/elysia/pull/1564
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-12-12T19:37:53Z/
url https://github.com/elysiajs/elysia/pull/1564
5
reference_url https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf
reference_id
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
1
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-12-12T19:37:53Z/
url https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf
6
reference_url https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-12-12T19:37:53Z/
url https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc
7
reference_url https://github.com/sportshead/elysia-poc
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/sportshead/elysia-poc
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-66457
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2025-66457
9
reference_url https://github.com/advisories/GHSA-8vch-m3f4-q8jf
reference_id GHSA-8vch-m3f4-q8jf
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-8vch-m3f4-q8jf
fixed_packages
0
url pkg:npm/elysia@1.4.18
purl pkg:npm/elysia@1.4.18
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-utav-a6cz-5kc1
1
vulnerability VCID-w24n-jgwq-6fep
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/elysia@1.4.18
aliases CVE-2025-66457, GHSA-8vch-m3f4-q8jf
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-3drv-bbm3-uqay
1
url VCID-utav-a6cz-5kc1
vulnerability_id VCID-utav-a6cz-5kc1
summary
Elysia Cookie Value Prototype Pollution
### Impact
Elysia cookie can be overridden by prototype pollution , eg. `__proto__`

Sending cookie with the follows name can override cookie value:
```bash
__proto__=%7B%22injected%22%3A%22polluted%22%7D
```

### Patches
Patched by 1.4.27

### Workarounds
1. Use t.Cookie validation to enforce validation value
2. Prevent iterable over cookie if possible
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-31865
reference_id
reference_type
scores
0
value 0.00022
scoring_system epss
scoring_elements 0.06469
published_at 2026-05-29T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-31865
1
reference_url https://github.com/elysiajs/elysia
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/elysiajs/elysia
2
reference_url https://github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-18T18:36:47Z/
url https://github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab
3
reference_url https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-18T18:36:47Z/
url https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-31865
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-31865
5
reference_url https://github.com/advisories/GHSA-8hq9-phh3-p2wp
reference_id GHSA-8hq9-phh3-p2wp
reference_type
scores
url https://github.com/advisories/GHSA-8hq9-phh3-p2wp
fixed_packages
0
url pkg:npm/elysia@1.4.27
purl pkg:npm/elysia@1.4.27
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/elysia@1.4.27
aliases CVE-2026-31865, GHSA-8hq9-phh3-p2wp
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-utav-a6cz-5kc1
2
url VCID-w24n-jgwq-6fep
vulnerability_id VCID-w24n-jgwq-6fep
summary
Elysia has a string URL format ReDoS
### Impact
`t.String({ format: 'url' })` is vulnerable to redos

Repeating a partial url format (protocol and hostname) multiple times cause regex to slow down significantly
```js
'http://a'.repeat(n)
```

Here's a table demonstrating how long it takes to process repeated partial url format
| `n` repeat | elapsed_ms |
| --- | --- |
| 1024 | 33.993 |
| 2048 | 134.357 |
| 4096 | 537.608 |
| 8192 | 2155.842 |
| 16384 | 8618.457 |
| 32768 | 34604.139 |

### Patches
Patched by 1.4.26, please kindly update `elysia` to >= 1.4.26 

Here's how long it takes after the patch
| `n` repeat | elapsed_ms |
| --- | --- |
| 1024 | 0.194 |
| 2048 | 0.274 |
| 4096 | 0.455 |
| 8192 | 0.831 |
| 16384 | 1.632 |
| 32768 | 3.052 |

### Workarounds
1. It's recommended to always limit URL format to a reasonable length
```ts
t.String({
	format: 'url',
	maxLength: 288
})
```

2. If a long URL format is necessary, to patch this without updating to 1.4.26, add the following code to any part of your codebase
```js
import { FormatRegistry } from '@sinclair/typebox'

FormatRegistry.Delete('url')
FormatRegistry.Set('url', (value) =>
	/^(?:https?|ftp):\/\/(?:[^\s:@]+(?::[^\s@]*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu.test(
		value
	)
)
```
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-30837
reference_id
reference_type
scores
0
value 0.00027
scoring_system epss
scoring_elements 0.08324
published_at 2026-05-29T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-30837
1
reference_url https://github.com/EdamAme-x/elysia-poc-redos
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/EdamAme-x/elysia-poc-redos
2
reference_url https://github.com/elysiajs/elysia
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/elysiajs/elysia
3
reference_url https://github.com/elysiajs/elysia/security/advisories/GHSA-f45g-68q3-5w8x
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/elysiajs/elysia/security/advisories/GHSA-f45g-68q3-5w8x
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-30837
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-30837
5
reference_url https://github.com/advisories/GHSA-f45g-68q3-5w8x
reference_id GHSA-f45g-68q3-5w8x
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-f45g-68q3-5w8x
fixed_packages
0
url pkg:npm/elysia@1.4.26
purl pkg:npm/elysia@1.4.26
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-utav-a6cz-5kc1
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/elysia@1.4.26
aliases CVE-2026-30837, GHSA-f45g-68q3-5w8x
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-w24n-jgwq-6fep
Fixing_vulnerabilities
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/elysia@1.3.8