Skip to content

JS: Add prompt injection detection (CWE-1427) for OpenAI, Anthropic, …

0b7133c
Select commit
Loading
Failed to load commit list.
Closed

JS: Add prompt injection detection (CWE-1427) for OpenAI, Anthropic, … #21780

JS: Add prompt injection detection (CWE-1427) for OpenAI, Anthropic, …
0b7133c
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL completed Apr 30, 2026 in 6s

6 configurations not found

Warning: Code scanning may not have found all the alerts introduced by this pull request, because 6 configurations present on refs/heads/main were not found:

Actions workflow (rust-analysis.yml)

  • ❓  .github/workflows/rust-analysis.yml:analyze/language:rust

Actions workflow (csv-coverage-metrics.yml)

  • ❓  .github/workflows/csv-coverage-metrics.yml:publish-csharp
  • ❓  .github/workflows/csv-coverage-metrics.yml:publish-java

Actions workflow (codeql-analysis.yml)

  • ❓  .github/workflows/codeql-analysis.yml:CodeQL-Build/language:actions
  • ❓  .github/workflows/codeql-analysis.yml:CodeQL-Build/language:csharp

Actions workflow (cpp-swift-analysis.yml)

  • ❓  .github/workflows/cpp-swift-analysis.yml:CodeQL-Build

New alerts in code changed by this pull request

  • 2 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 145 in javascript/ql/src/experimental/semmle/javascript/frameworks/OpenAI.qll

See this annotation in the file changed.

Code scanning / CodeQL

Acronyms should be PascalCase/camelCase Warning

Acronyms in AgentSDK should be PascalCase/camelCase.

Check warning on line 1 in javascript/ql/test/experimental/Security/CWE-1427/PromptInjection.qlref

See this annotation in the file changed.

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.