Skip to content

Commit 952d1a9

Browse files
waleedlatif1claude
andcommitted
fix(jira): quote project key in bulk_read JQL for defense in depth
The alphanumeric regex check above already blocks injection, but quoting the project key matches the pattern used elsewhere (issues/route.ts) and hardens the path against future regex changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 16111b9 commit 952d1a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/tools/jira/bulk_read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const jiraBulkRetrieveTool: ToolConfig<JiraRetrieveBulkParams, JiraRetrie
9393
`Invalid Jira project key "${projectKey}". Expected an alphanumeric project key (e.g., PROJ).`
9494
)
9595
}
96-
const jql = `project = ${projectKey} ORDER BY updated DESC`
96+
const jql = `project = "${projectKey}" ORDER BY updated DESC`
9797

9898
let collected: any[] = []
9999
let nextPageToken: string | undefined

0 commit comments

Comments
 (0)