| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d4f95e69-88f9-69c8-b5b3-d21e4711847c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B8C8:33E6E7:89056FA:B72CF26:696E1CCB |
| html-safe-nonce | c351a067c6e5dd6aff21c3d2f2757a335267be68d4a85d2f8724ac38c0c84582 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM4OjMzRTZFNzo4OTA1NkZBOkI3MkNGMjY6Njk2RTFDQ0IiLCJ2aXNpdG9yX2lkIjoiNzI4NDcxMjk2MDQzNTI5NzQ4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6161756161af40847ecf297faf8b00d31b7850c137bbd5631479c6d265c86c79 |
| hovercard-subject-tag | pull_request:3160387369 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/codeql/21141/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/77e38dcf5ad266ca234f00da3724a0fe7db7bc1c89151173fc401474dc3188fb/github/codeql/pull/21141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77e38dcf5ad266ca234f00da3724a0fe7db7bc1c89151173fc401474dc3188fb/github/codeql/pull/21141 |
| og:image:alt | This pull request introduces a new CodeQL query for detecting prompt injection vulnerabilities in Python code targeting AI prompting APIs such as agents and openai. The changes includes a new expe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mbaluda |
| hostname | github.com |
| expected-hostname | github.com |
| None | 113cc336e7105fbb9f2ee8beb67c6cc584d65fa66a8a1a5dd236ba66db174af7 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d23f8b0bc31294c6a73ba2f3adfdd8c7052ca1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#start-of-content |
|
| https://patch-diff.githubusercontent.com/ |
|
Sign in
| https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F21141 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F21141 |
|
Sign up
| https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fcodeql |
| Reload | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| Reload | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| Reload | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
|
github
| https://patch-diff.githubusercontent.com/github |
| codeql | https://patch-diff.githubusercontent.com/github/codeql |
|
Notifications
| https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql |
|
Fork
1.9k
| https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql |
|
Star
9.1k
| https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql |
|
Code
| https://patch-diff.githubusercontent.com/github/codeql |
|
Issues
918
| https://patch-diff.githubusercontent.com/github/codeql/issues |
|
Pull requests
367
| https://patch-diff.githubusercontent.com/github/codeql/pulls |
|
Discussions
| https://patch-diff.githubusercontent.com/github/codeql/discussions |
|
Actions
| https://patch-diff.githubusercontent.com/github/codeql/actions |
|
Projects
0
| https://patch-diff.githubusercontent.com/github/codeql/projects |
|
Models
| https://patch-diff.githubusercontent.com/github/codeql/models |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://patch-diff.githubusercontent.com/github/codeql/security |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
|
Insights
| https://patch-diff.githubusercontent.com/github/codeql/pulse |
|
Code
| https://patch-diff.githubusercontent.com/github/codeql |
|
Issues
| https://patch-diff.githubusercontent.com/github/codeql/issues |
|
Pull requests
| https://patch-diff.githubusercontent.com/github/codeql/pulls |
|
Discussions
| https://patch-diff.githubusercontent.com/github/codeql/discussions |
|
Actions
| https://patch-diff.githubusercontent.com/github/codeql/actions |
|
Projects
| https://patch-diff.githubusercontent.com/github/codeql/projects |
|
Models
| https://patch-diff.githubusercontent.com/github/codeql/models |
|
Security
| https://patch-diff.githubusercontent.com/github/codeql/security |
|
Insights
| https://patch-diff.githubusercontent.com/github/codeql/pulse |
| Sign up for GitHub
| https://patch-diff.githubusercontent.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#issue-comment-box |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| github:main | https://patch-diff.githubusercontent.com/github/codeql/tree/main |
| mbaluda:prompt-injection | https://patch-diff.githubusercontent.com/mbaluda/codeql/tree/prompt-injection |
|
Python: Prompt injection in OpenAI clients
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141#top |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| github:main | https://patch-diff.githubusercontent.com/github/codeql/tree/main |
| mbaluda:prompt-injection | https://patch-diff.githubusercontent.com/mbaluda/codeql/tree/prompt-injection |
|
Conversation
14
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
|
Commits
29
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits |
|
Checks
13
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/checks |
|
Files changed
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| https://github.co/hiddenchars |
| https://patch-diff.githubusercontent.com/github/codeql/pull/{{ revealButtonHref }} |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#issue-3797774220 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| knewbury01 | https://patch-diff.githubusercontent.com/knewbury01 |
| December 12, 2025 17:41 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#commits-pushed-005db5b |
|
| https://patch-diff.githubusercontent.com/knewbury01 |
| Add first version prompt injection query python openai agents sdk | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/005db5bdcf9572585a2a902072263136c12de463 |
| 005db5b | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/005db5bdcf9572585a2a902072263136c12de463 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Add support for openai.OpenAI client library | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/7a9e03d1be3171f1ed0789cc4dfd10393e25a3f5 |
| 7a9e03d | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/7a9e03d1be3171f1ed0789cc4dfd10393e25a3f5 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Merge branch 'knewbury01/add-prompt-injection-query-python' into prom… | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/b30444bcacb0346111ec14c7c638cabfc6878189 |
| b30444b | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/b30444bcacb0346111ec14c7c638cabfc6878189 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Fix projcet build errors | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/6c5c87e05075ee49977eadd4f71e0630be300bb9 |
| 6c5c87e | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/6c5c87e05075ee49977eadd4f71e0630be300bb9 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Fix newline at end of PromptInjection.qlref | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/616698cb4a9c96e53cbc0725693eb37aeac29677 |
| 616698c | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/616698cb4a9c96e53cbc0725693eb37aeac29677 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/942834d86f4cbe70fa9208fb34288eae9ce53596 |
| 942834d | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/942834d86f4cbe70fa9208fb34288eae9ce53596 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/src/Security/CWE-1427/PromptInjection.ql | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/df979da1b6bd4a54443d91fc537aca5c74397fe6 |
| df979da | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/df979da1b6bd4a54443d91fc537aca5c74397fe6 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Add example to qlhelp | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/bacecb7250265341e113378b7306126725faa555 |
| bacecb7 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/bacecb7250265341e113378b7306126725faa555 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Fix missing predicate | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/a9d0a1639a3cca767650e21d1d016ed2e3ffa48e |
| a9d0a16 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/a9d0a1639a3cca767650e21d1d016ed2e3ffa48e |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Une inline expectations | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/04193f4bb585eeef90da5c9df35fedd77e3d6558 |
| 04193f4 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/04193f4bb585eeef90da5c9df35fedd77e3d6558 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Use models as data | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/2c83dc3689ed94c8450d74db50b2b278296e12da |
| 2c83dc3 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/2c83dc3689ed94c8450d74db50b2b278296e12da |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/src/Security/CWE-1427/examples/example.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/0c7996eb7efe549d0745fc6e50fcf22f1c303b1a |
| 0c7996e | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/0c7996eb7efe549d0745fc6e50fcf22f1c303b1a |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/lib/semmle/python/Concepts.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/21a21469f1afd7decd76e3efee785621223e8530 |
| 21a2146 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/21a21469f1afd7decd76e3efee785621223e8530 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/src/Security/CWE-1427/PromptInjection.qhelp | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/7d450c580b66c3bbd0785549d61dbe3f57985adc |
| 7d450c5 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/7d450c580b66c3bbd0785549d61dbe3f57985adc |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/lib/change-notes/2026-01-02-prompt-injection.md | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/c352ffd28c043484170e146eb4f00f8af0482680 |
| c352ffd | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/c352ffd28c043484170e146eb4f00f8af0482680 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Fix capitalization typo | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/9ea0a1258c306751d047c94ddd90108915333d7a |
| 9ea0a12 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/9ea0a1258c306751d047c94ddd90108915333d7a |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| QLdoc | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/fd8e1700c252249f2470183badc4b92fea3e0780 |
| fd8e170 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/fd8e1700c252249f2470183badc4b92fea3e0780 |
|
| https://patch-diff.githubusercontent.com/knewbury01 |
| Merge branch 'main' into knewbury01/add-prompt-injection-query-python | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/b4275e8a2ae7543827daafcb86f7e61b818bcfbc |
| b4275e8 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/b4275e8a2ae7543827daafcb86f7e61b818bcfbc |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Merge pull request | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/4117252725aaf1d1894e0229e8b336addffc4659 |
| #4 | https://github.com/mbaluda/codeql/pull/4 |
| from github/main | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/4117252725aaf1d1894e0229e8b336addffc4659 |
| 4117252 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/4117252725aaf1d1894e0229e8b336addffc4659 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Merge branch 'knewbury01/add-prompt-injection-query-python' into prom… | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/c7d99a1339ceae805090bff578df0af04f6546b0 |
| c7d99a1 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/c7d99a1339ceae805090bff578df0af04f6546b0 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| precise models for experimental query | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/1a0feb4bac33d6e112d54f6ac8e4c670d083a58a |
| 1a0feb4 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/1a0feb4bac33d6e112d54f6ac8e4c670d083a58a |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| removed spurious file | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/01b9fa245388341c70a6e4d731f21d94d1fa3d5b |
| 01b9fa2 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/01b9fa245388341c70a6e4d731f21d94d1fa3d5b |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| remove test | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/29aad2e5164accba59bcc5900fdcdeb2ebd20672 |
| 29aad2e | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/29aad2e5164accba59bcc5900fdcdeb2ebd20672 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Refactor openai model | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/0a36be1ae34ac25ae43819682c6cb4c9e7f1117f |
| 0a36be1 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/0a36be1ae34ac25ae43819682c6cb4c9e7f1117f |
|
| https://patch-diff.githubusercontent.com/knewbury01 |
| Improve agents sdk modelling ( | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/dccaa84b96e557e85a146ff1c9b6a7939a443f66 |
| #5 | https://github.com/mbaluda/codeql/pull/5 |
| ) | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/dccaa84b96e557e85a146ff1c9b6a7939a443f66 |
| dccaa84 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/dccaa84b96e557e85a146ff1c9b6a7939a443f66 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Update OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/1ec82d9f56878eb24a27aa0c2d700cfc7e78da70 |
| 1ec82d9 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/1ec82d9f56878eb24a27aa0c2d700cfc7e78da70 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
| Merge branch 'github:main' into prompt-injection | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/3c14266b972ae247da55c7b46edf7ac6b31dec35 |
| 3c14266 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/3c14266b972ae247da55c7b46edf7ac6b31dec35 |
| https://patch-diff.githubusercontent.com/mbaluda |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| code owner | https://patch-diff.githubusercontent.com/github/codeql/blob/44089d84a34c98cf10267824087ec4eb8bfede4f/CODEOWNERS#L19 |
| January 9, 2026 17:34 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#event-21952503539 |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| January 9, 2026 17:34 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#event-21952503597 |
| https://patch-diff.githubusercontent.com/mbaluda |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
|
documentation
| https://patch-diff.githubusercontent.com/github/codeql/issues?q=state%3Aopen%20label%3Adocumentation |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#event-21952503760 |
| https://patch-diff.githubusercontent.com/mbaluda |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
|
Python
| https://patch-diff.githubusercontent.com/github/codeql/issues?q=state%3Aopen%20label%3APython |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#event-21952503820 |
| started reviewing | https://github.com/copilot/tasks/pull/PR_kwDOCIafrM68X68p?session_id=4d31485e-693c-4481-afb8-d201abbed520 |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| January 9, 2026 17:35 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#event-21952515903 |
|
View session
| https://github.com/copilot/tasks/pull/PR_kwDOCIafrM68X68p?session_id=4d31485e-693c-4481-afb8-d201abbed520 |
| https://patch-diff.githubusercontent.com/apps/github-actions |
| github-actions | https://patch-diff.githubusercontent.com/apps/github-actions |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#issuecomment-3729920966 |
| Guardrails | https://openai.github.io/openai-guardrails-python |
| CWE-1427 | https://cwe.mitre.org/data/definitions/1427.html |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| https://patch-diff.githubusercontent.com/apps/github-advanced-security |
| github-advanced-security | https://patch-diff.githubusercontent.com/apps/github-advanced-security |
|
Jan 9, 2026
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141#pullrequestreview-3644931997 |
|
View reviewed changes
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35 |
| python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-a6c92437a20f4c6214b62086fb0fd536a1b16eeaa6f1666322e22acfd49a4060 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
|
Jan 9, 2026
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141#pullrequestreview-3644945609 |
|
View reviewed changes
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35 |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141#pullrequestreview-3644945609 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://patch-diff.githubusercontent.com/github/codeql/new/main/.github/instructions?filename=*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/test/experimental/query-tests/Security/CWE-1427-PromptInjection/openai_test.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-90d2ef6bd61151b45f6a215abaf2947dfabc93b0dc8780da0056a9b444460afe |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-a6c92437a20f4c6214b62086fb0fd536a1b16eeaa6f1666322e22acfd49a4060 |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#discussion_r2677058601 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| python/ql/src/experimental/Security/CWE-1427/examples/example.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-c9610644f8623ad9a16a9553eb1c748e1aaa80934cb814a7ce4d0aad76b83b96 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/test/experimental/query-tests/Security/CWE-1427-PromptInjection/agent_instructions.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-c788d78a6e8e1496c01c8eaa67250de709b2f6cdd93f77bc5170bf922b6ac8f2 |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#discussion_r2677058655 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| python/ql/src/experimental/Security/CWE-1427/PromptInjection.qhelp | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-d20eb93347e104727690e2e8c3be1e6c0986286a38a96dacaf99946d7a4a7ed9 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/src/experimental/Security/CWE-1427/examples/example.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-c9610644f8623ad9a16a9553eb1c748e1aaa80934cb814a7ce4d0aad76b83b96 |
| Copilot | https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Jan 9, 2026 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#discussion_r2677058700 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| Copilot | https://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review |
| python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-a6c92437a20f4c6214b62086fb0fd536a1b16eeaa6f1666322e22acfd49a4060 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/test/experimental/query-tests/Security/CWE-1427-PromptInjection/agent_instructions.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-c788d78a6e8e1496c01c8eaa67250de709b2f6cdd93f77bc5170bf922b6ac8f2 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/src/experimental/Security/CWE-1427/examples/example.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-c9610644f8623ad9a16a9553eb1c748e1aaa80934cb814a7ce4d0aad76b83b96 |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| python/ql/test/experimental/query-tests/Security/CWE-1427-PromptInjection/openai_test.py | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35#diff-90d2ef6bd61151b45f6a215abaf2947dfabc93b0dc8780da0056a9b444460afe |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
| mbaluda | https://patch-diff.githubusercontent.com/mbaluda |
| January 9, 2026 19:07 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141#commits-pushed-16370d6 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/test/experimental/query-tests/Security/CWE-1427-Prom… | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/16370d6cd1c38d11114f1ba6de9dd5b073dee7ec |
| 16370d6 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/16370d6cd1c38d11114f1ba6de9dd5b073dee7ec |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
| Update python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/454268187f87928e1e261648d7e8ea60f59859ea |
| 4542681 | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/commits/454268187f87928e1e261648d7e8ea60f59859ea |
| https://patch-diff.githubusercontent.com/apps/github-advanced-security |
| github-advanced-security | https://patch-diff.githubusercontent.com/apps/github-advanced-security |
|
Jan 9, 2026
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141#pullrequestreview-3645062064 |
|
View reviewed changes
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/454268187f87928e1e261648d7e8ea60f59859ea |
| python/ql/lib/semmle/python/frameworks/OpenAI.qll | https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/454268187f87928e1e261648d7e8ea60f59859ea#diff-a6c92437a20f4c6214b62086fb0fd536a1b16eeaa6f1666322e22acfd49a4060 |
| Sign up for free | https://patch-diff.githubusercontent.com/join?source=comment-repo |
| Sign in to comment | https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F21141 |
|
Copilot code review
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://patch-diff.githubusercontent.com/apps/copilot-pull-request-reviewer |
|
| https://patch-diff.githubusercontent.com/github/codeql/pull/21141/files/3c14266b972ae247da55c7b46edf7ac6b31dec35 |
|
documentation
| https://patch-diff.githubusercontent.com/github/codeql/issues?q=state%3Aopen%20label%3Adocumentation |
|
Python
| https://patch-diff.githubusercontent.com/github/codeql/issues?q=state%3Aopen%20label%3APython |
| Please reload this page | https://patch-diff.githubusercontent.com/github/codeql/pull/21141 |
|
| https://patch-diff.githubusercontent.com/mbaluda |
|
| https://patch-diff.githubusercontent.com/knewbury01 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |