Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(security): pin decode-uri-component to 0.5.1 (GHSA-QR28-FPJM-WQ7F) (#5459)

claude[bot]74f81da6935b
diff --git a/apps/api/pnpm-lock.yaml b/apps/api/pnpm-lock.yaml
index 42b1bfd71..0fca23e53 100644
--- a/apps/api/pnpm-lock.yaml
+++ b/apps/api/pnpm-lock.yaml
@@ -50,6 +50,7 @@ overrides:
shell-quote@<1.11.0: 1.11.0
esbuild@>=0.17.0 <0.28.1: 0.28.1
query-string@>=9.0.0 <10.0.0: '>=9.5.0 <10.0.0'
+ decode-uri-component@>=0.5.0 <0.5.1: 0.5.1
'@ai-sdk/provider-utils@>=4.0.0 <4.0.33': 4.0.51
'@google-cloud/opentelemetry-cloud-monitoring-exporter': ^0.22.0
'@opentelemetry/core@<2.9.0': 2.9.0
@@ -2667,8 +2668,8 @@ packages:
resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
- resolution: {integrity: sha512-1BiQVoK8C9gUbQU6NzAtO/tkz2qOFpEObMWpcFvhx4fYnj4Oc5yzaJN/LD36ihkVUdXyh5ZekzX+yM+ty/SrPg==}
+ resolution: {integrity: sha512-vWHQkXgg2cE3BB4rR0c+PYw9BCQzLoNIRMI7AunIkZst74tw/vpPp7VLoYtsR/cy1f55g3XDWUslfeCZjiZJyA==}
engines: {node: '>=14.16'}
@@ -6654,7 +6655,7 @@ snapshots:
@@ -7956,7 +7957,7 @@ snapshots:
dependencies:
- decode-uri-component: 0.5.0
+ decode-uri-component: 0.5.1
filter-obj: 5.1.0
split-on-first: 3.0.0
diff --git a/apps/api/pnpm-workspace.yaml b/apps/api/pnpm-workspace.yaml
index 588d464f5..aace08034 100644
--- a/apps/api/pnpm-workspace.yaml
+++ b/apps/api/pnpm-workspace.yaml
@@ -88,6 +88,11 @@ overrides:
"shell-quote@<1.11.0": "1.11.0"
"esbuild@>=0.17.0 <0.28.1": "0.28.1"
"query-string@>=9.0.0 <10.0.0": ">=9.5.0 <10.0.0"
+ # GHSA-QR28-FPJM-WQ7F: decode-uri-component 0.5.0 is vulnerable (DoS via
+ # quadratic replacement of percent-encoded runs); 0.5.1 is the fix.
+ # Selector covers only 0.5.0; replacement stays within 0.x, cannot
+ # resolve to 1.x.
+ "decode-uri-component@>=0.5.0 <0.5.1": "0.5.1"
# GHSA-866g-f22w-33x8: pin the 4.x line only. Exact 4.0.51 cannot
# resolve to 5.x.
"@ai-sdk/provider-utils@>=4.0.0 <4.0.33": "4.0.51"