Skip to content

Commit 16111b9

Browse files
committed
fix(jira): quote project key in JQL to defend against injection
1 parent 931186c commit 16111b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/tools/jira/issues

apps/sim/app/api/tools/jira/issues/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const GET = withRouteHandler(async (request: NextRequest) => {
172172

173173
const buildUrl = (token?: string) => {
174174
const jqlParts: string[] = []
175-
if (projectKey) jqlParts.push(`project = ${projectKey}`)
175+
if (projectKey) jqlParts.push(`project = "${escapeJql(projectKey)}"`)
176176
if (query) {
177177
const q = escapeJql(query)
178178
jqlParts.push(`(key ~ "${q}" OR summary ~ "${q}")`)

0 commit comments

Comments
 (0)