Skip to content

Commit 442242c

Browse files
mirarifhasanjamesgeorge007nahidhasan94
authored
chore: security patch for the quic-go vulnerability (hoppscotch#5710)
Co-authored-by: James George <[email protected]> Co-authored-by: Nahid Hasan <[email protected]>
1 parent 440868d commit 442242c

File tree

19 files changed

+1631
-1558
lines changed

19 files changed

+1631
-1558
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"nodemailer@<7.0.11": "7.0.11",
4545
"glob@<11.1.0": "11.1.0",
4646
"subscriptions-transport-ws>ws": "7.5.10",
47-
"vue": "3.5.25",
47+
"vue": "3.5.26",
4848
"form-data": "4.0.4",
4949
"ws": "8.17.1"
5050
},

packages/codemirror-lang-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@lezer/generator": "1.8.0",
2626
"@rollup/plugin-typescript": "12.1.4",
2727
"mocha": "11.7.5",
28-
"rollup": "4.53.3",
28+
"rollup": "4.53.5",
2929
"typescript": "5.9.3"
3030
}
3131
}

packages/hoppscotch-agent/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
"@vueuse/core": "14.1.0",
1717
"axios": "1.13.2",
1818
"fp-ts": "2.16.11",
19-
"lodash-es": "4.17.21",
20-
"vue": "3.5.25"
19+
"lodash-es": "4.17.22",
20+
"vue": "3.5.26"
2121
},
2222
"devDependencies": {
23-
"@iconify-json/lucide": "1.2.80",
23+
"@iconify-json/lucide": "1.2.81",
2424
"@tauri-apps/cli": "2.9.3",
2525
"@types/lodash-es": "4.17.12",
2626
"@types/node": "24.10.1",
2727
"@vitejs/plugin-vue": "6.0.3",
28-
"autoprefixer": "10.4.22",
28+
"autoprefixer": "10.4.23",
2929
"postcss": "8.5.6",
3030
"tailwindcss": "3.4.16",
3131
"typescript": "5.9.3",
3232
"unplugin-icons": "22.5.0",
3333
"unplugin-vue-components": "30.0.0",
34-
"vite": "7.2.7",
34+
"vite": "7.3.0",
3535
"vue-tsc": "2.2.0"
3636
}
3737
}

packages/hoppscotch-backend/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"@apollo/server": "5.2.0",
3535
"@as-integrations/express5": "1.1.2",
3636
"@nestjs-modules/mailer": "2.0.2",
37-
"@nestjs/apollo": "13.2.1",
37+
"@nestjs/apollo": "13.2.3",
3838
"@nestjs/common": "11.1.9",
3939
"@nestjs/config": "4.0.2",
4040
"@nestjs/core": "11.1.9",
41-
"@nestjs/graphql": "13.2.0",
41+
"@nestjs/graphql": "13.2.3",
4242
"@nestjs/jwt": "11.0.2",
4343
"@nestjs/passport": "11.0.0",
4444
"@nestjs/platform-express": "11.1.9",
4545
"@nestjs/schedule": "6.1.0",
4646
"@nestjs/swagger": "11.2.3",
4747
"@nestjs/terminus": "11.0.0",
4848
"@nestjs/throttler": "6.5.0",
49-
"@prisma/adapter-pg": "7.1.0",
50-
"@prisma/client": "7.1.0",
49+
"@prisma/adapter-pg": "7.2.0",
50+
"@prisma/client": "7.2.0",
5151
"argon2": "0.44.0",
5252
"bcrypt": "6.0.0",
5353
"class-transformer": "0.5.1",
@@ -73,15 +73,15 @@
7373
"passport-local": "1.0.0",
7474
"passport-microsoft": "2.1.0",
7575
"pg": "8.16.3",
76-
"posthog-node": "5.17.2",
77-
"prisma": "7.1.0",
76+
"posthog-node": "5.17.4",
77+
"prisma": "7.2.0",
7878
"reflect-metadata": "0.2.2",
7979
"rimraf": "6.1.2",
8080
"rxjs": "7.8.2"
8181
},
8282
"devDependencies": {
8383
"@eslint/eslintrc": "3.3.3",
84-
"@eslint/js": "9.39.1",
84+
"@eslint/js": "9.39.2",
8585
"@nestjs/cli": "11.0.14",
8686
"@nestjs/schematics": "11.0.9",
8787
"@nestjs/testing": "11.1.9",
@@ -90,18 +90,18 @@
9090
"@types/cookie-parser": "1.4.10",
9191
"@types/express": "5.0.6",
9292
"@types/jest": "30.0.0",
93-
"@types/node": "24.10.2",
93+
"@types/node": "25.0.3",
9494
"@types/nodemailer": "7.0.4",
9595
"@types/passport-github2": "1.2.9",
9696
"@types/passport-google-oauth20": "2.0.17",
9797
"@types/passport-jwt": "4.0.1",
9898
"@types/passport-microsoft": "2.1.1",
99-
"@types/pg": "8.15.6",
99+
"@types/pg": "8.16.0",
100100
"@types/supertest": "6.0.3",
101-
"@typescript-eslint/eslint-plugin": "8.49.0",
102-
"@typescript-eslint/parser": "8.49.0",
101+
"@typescript-eslint/eslint-plugin": "8.50.0",
102+
"@typescript-eslint/parser": "8.50.0",
103103
"cross-env": "10.1.0",
104-
"eslint": "9.39.1",
104+
"eslint": "9.39.2",
105105
"eslint-config-prettier": "10.1.8",
106106
"eslint-plugin-prettier": "5.5.4",
107107
"globals": "16.5.0",

packages/hoppscotch-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"commander": "14.0.2",
4949
"isolated-vm": "6.0.2",
5050
"js-md5": "0.8.3",
51-
"lodash-es": "4.17.21",
51+
"lodash-es": "4.17.22",
5252
"papaparse": "5.5.3",
5353
"qs": "6.14.0",
5454
"tough-cookie": "6.0.0",
@@ -61,14 +61,14 @@
6161
"@hoppscotch/js-sandbox": "workspace:^",
6262
"@relmify/jest-fp-ts": "2.1.1",
6363
"@types/lodash-es": "4.17.12",
64-
"@types/papaparse": "5.5.1",
64+
"@types/papaparse": "5.5.2",
6565
"@types/qs": "6.14.0",
6666
"fp-ts": "2.16.11",
6767
"prettier": "3.7.4",
6868
"qs": "6.11.2",
6969
"semver": "7.7.3",
7070
"tsup": "8.5.1",
7171
"typescript": "5.9.3",
72-
"vitest": "4.0.15"
72+
"vitest": "4.0.16"
7373
}
7474
}

packages/hoppscotch-common/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"js-yaml": "4.1.1",
8181
"jsonc-parser": "3.3.1",
8282
"jsonpath-plus": "10.3.0",
83-
"lodash-es": "4.17.21",
83+
"lodash-es": "4.17.22",
8484
"lossless-json": "4.3.0",
8585
"markdown-it": "14.1.0",
8686
"minisearch": "7.2.0",
@@ -92,7 +92,7 @@
9292
"process": "0.11.10",
9393
"qs": "6.14.0",
9494
"quicktype-core": "23.2.6",
95-
"rollup": "4.53.3",
95+
"rollup": "4.53.5",
9696
"rxjs": "7.8.2",
9797
"set-cookie-parser": "2.7.2",
9898
"set-cookie-parser-es": "1.0.5",
@@ -111,7 +111,7 @@
111111
"util": "0.12.5",
112112
"uuid": "13.0.0",
113113
"verzod": "0.4.0",
114-
"vue": "3.5.25",
114+
"vue": "3.5.26",
115115
"vue-i18n": "11.2.2",
116116
"vue-json-pretty": "2.6.0",
117117
"vue-pdf-embed": "2.1.3",
@@ -129,15 +129,15 @@
129129
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
130130
"@graphql-codegen/add": "6.0.0",
131131
"@graphql-codegen/cli": "6.1.0",
132-
"@graphql-codegen/typed-document-node": "6.1.4",
133-
"@graphql-codegen/typescript": "5.0.6",
134-
"@graphql-codegen/typescript-operations": "5.0.6",
132+
"@graphql-codegen/typed-document-node": "6.1.5",
133+
"@graphql-codegen/typescript": "5.0.7",
134+
"@graphql-codegen/typescript-operations": "5.0.7",
135135
"@graphql-codegen/typescript-urql-graphcache": "3.1.1",
136136
"@graphql-codegen/urql-introspection": "3.0.1",
137137
"@graphql-typed-document-node/core": "3.2.0",
138-
"@iconify-json/lucide": "1.2.80",
138+
"@iconify-json/lucide": "1.2.81",
139139
"@import-meta-env/cli": "0.7.4",
140-
"@intlify/unplugin-vue-i18n": "11.0.1",
140+
"@intlify/unplugin-vue-i18n": "11.0.3",
141141
"@relmify/jest-fp-ts": "2.1.1",
142142
"@rushstack/eslint-patch": "1.15.0",
143143
"@types/har-format": "1.2.16",
@@ -149,13 +149,13 @@
149149
"@types/qs": "6.14.0",
150150
"@types/splitpanes": "2.2.6",
151151
"@types/yargs-parser": "21.0.3",
152-
"@typescript-eslint/eslint-plugin": "8.49.0",
153-
"@typescript-eslint/parser": "8.49.0",
152+
"@typescript-eslint/eslint-plugin": "8.50.0",
153+
"@typescript-eslint/parser": "8.50.0",
154154
"@vitejs/plugin-vue": "6.0.3",
155-
"@vue/compiler-sfc": "3.5.25",
155+
"@vue/compiler-sfc": "3.5.26",
156156
"@vue/eslint-config-typescript": "13.0.0",
157-
"@vue/runtime-core": "3.5.25",
158-
"autoprefixer": "10.4.22",
157+
"@vue/runtime-core": "3.5.26",
158+
"autoprefixer": "10.4.23",
159159
"cross-env": "10.1.0",
160160
"dotenv": "17.2.3",
161161
"eslint": "8.57.0",
@@ -169,22 +169,22 @@
169169
"prettier": "3.7.4",
170170
"prettier-plugin-tailwindcss": "0.7.1",
171171
"rollup-plugin-polyfill-node": "0.13.0",
172-
"sass": "1.96.0",
172+
"sass": "1.97.0",
173173
"tailwindcss": "3.4.16",
174174
"tsup": "8.5.1",
175175
"typescript": "5.9.3",
176176
"unplugin-fonts": "1.4.0",
177177
"unplugin-icons": "22.5.0",
178178
"unplugin-vue-components": "30.0.0",
179-
"vite": "7.2.7",
179+
"vite": "7.3.0",
180180
"vite-plugin-checker": "0.11.0",
181181
"vite-plugin-fonts": "0.7.0",
182182
"vite-plugin-html-config": "2.0.2",
183183
"vite-plugin-pages": "0.33.2",
184184
"vite-plugin-pages-sitemap": "1.7.1",
185185
"vite-plugin-pwa": "1.2.0",
186186
"vite-plugin-vue-layouts": "0.11.0",
187-
"vitest": "4.0.15",
187+
"vitest": "4.0.16",
188188
"vue-tsc": "1.8.8"
189189
}
190190
}

packages/hoppscotch-common/src/services/context-menu/menu/__tests__/parameter.menu.spec.ts

Lines changed: 34 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -25,61 +25,49 @@ describe("ParameterMenuService", () => {
2525

2626
expect(registerContextMenuFn).toHaveBeenCalledOnce()
2727
expect(registerContextMenuFn).toHaveBeenCalledWith(parameter)
28+
})
2829

29-
describe("getMenuFor", () => {
30-
it("validating if the text passes the regex and return the menu", () => {
31-
const container = new TestContainer()
32-
const parameter = container.bind(ParameterMenuService)
33-
34-
const test = "https://hoppscotch.io?id=some-text"
35-
const result = parameter.getMenuFor(test)
36-
37-
if (test.match(urlAndParameterRegex)) {
38-
expect(result.results).toContainEqual(
39-
expect.objectContaining({ id: "parameter" })
40-
)
41-
} else {
42-
expect(result.results).not.toContainEqual(
43-
expect.objectContaining({ id: "parameter" })
44-
)
45-
}
46-
})
47-
48-
it("should call the addParameter function when action is called", () => {
49-
const addParameterFn = vi.fn()
50-
51-
const container = new TestContainer()
52-
const environment = container.bind(ParameterMenuService)
53-
54-
const test = "https://hoppscotch.io"
55-
56-
const result = environment.getMenuFor(test)
57-
58-
const action = result.results[0].action
59-
60-
action()
30+
describe("getMenuFor", () => {
31+
it("validating if the text passes the regex and return the menu", () => {
32+
const container = new TestContainer()
33+
const parameter = container.bind(ParameterMenuService)
34+
35+
const test = "https://hoppscotch.io?id=some-text"
36+
const result = parameter.getMenuFor(test)
37+
38+
if (test.match(urlAndParameterRegex)) {
39+
expect(result.results).toContainEqual(
40+
expect.objectContaining({ id: "parameter" })
41+
)
42+
} else {
43+
expect(result.results).not.toContainEqual(
44+
expect.objectContaining({ id: "parameter" })
45+
)
46+
}
47+
})
6148

62-
expect(addParameterFn).toHaveBeenCalledOnce()
63-
expect(addParameterFn).toHaveBeenCalledWith(action)
64-
})
49+
it("should return a result with an action when text contains parameters", () => {
50+
const container = new TestContainer()
51+
const parameter = container.bind(ParameterMenuService)
6552

66-
it("should call the extractParams function when addParameter function is called", () => {
67-
const extractParamsFn = vi.fn()
53+
const test = "https://hoppscotch.io?id=some-text"
6854

69-
const container = new TestContainer()
70-
const environment = container.bind(ParameterMenuService)
55+
const result = parameter.getMenuFor(test)
7156

72-
const test = "https://hoppscotch.io"
57+
expect(result.results).toHaveLength(1)
58+
expect(result.results[0]).toHaveProperty("action")
59+
expect(typeof result.results[0].action).toBe("function")
60+
})
7361

74-
const result = environment.getMenuFor(test)
62+
it("should return empty results when text does not contain parameters", () => {
63+
const container = new TestContainer()
64+
const parameter = container.bind(ParameterMenuService)
7565

76-
const action = result.results[0].action
66+
const test = "https://hoppscotch.io"
7767

78-
action()
68+
const result = parameter.getMenuFor(test)
7969

80-
expect(extractParamsFn).toHaveBeenCalledOnce()
81-
expect(extractParamsFn).toHaveBeenCalledWith(action)
82-
})
70+
expect(result.results).toHaveLength(0)
8371
})
8472
})
8573
})

packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class ParameterMenuService extends Service implements ContextMenu {
120120
if (urlAndParameterRegex.test(text)) {
121121
results.value = [
122122
{
123-
id: "environment",
123+
id: "parameter",
124124
text: {
125125
type: "text",
126126
text: this.t("context_menu.add_parameters"),

packages/hoppscotch-data/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"devDependencies": {
3838
"@types/lodash": "4.17.21",
3939
"typescript": "5.9.3",
40-
"vite": "7.2.7"
40+
"vite": "7.3.0"
4141
},
4242
"dependencies": {
4343
"fp-ts": "2.16.11",

packages/hoppscotch-desktop/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,30 @@
3434
"@tauri-apps/plugin-updater": "2.9.0",
3535
"fp-ts": "2.16.11",
3636
"rxjs": "7.8.2",
37-
"vue": "3.5.25",
37+
"vue": "3.5.26",
3838
"vue-router": "4.6.4",
3939
"vue-tippy": "6.7.1",
4040
"zod": "3.25.32"
4141
},
4242
"devDependencies": {
43-
"@iconify-json/lucide": "1.2.80",
43+
"@iconify-json/lucide": "1.2.81",
4444
"@rushstack/eslint-patch": "1.15.0",
4545
"@tauri-apps/cli": "2.9.3",
46-
"@typescript-eslint/eslint-plugin": "8.49.0",
47-
"@typescript-eslint/parser": "8.49.0",
46+
"@typescript-eslint/eslint-plugin": "8.50.0",
47+
"@typescript-eslint/parser": "8.50.0",
4848
"@vitejs/plugin-vue": "6.0.3",
4949
"@vue/eslint-config-typescript": "13.0.0",
50-
"autoprefixer": "10.4.22",
50+
"autoprefixer": "10.4.23",
5151
"eslint": "8.57.0",
5252
"eslint-plugin-prettier": "5.5.4",
5353
"eslint-plugin-vue": "10.6.2",
5454
"postcss": "8.5.6",
55-
"sass": "1.96.0",
55+
"sass": "1.97.0",
5656
"tailwindcss": "3.4.16",
5757
"typescript": "5.9.3",
5858
"unplugin-icons": "22.5.0",
5959
"unplugin-vue-components": "30.0.0",
60-
"vite": "7.2.7",
60+
"vite": "7.3.0",
6161
"vue-tsc": "2.2.0"
6262
}
6363
}

0 commit comments

Comments
 (0)