Skip to content

fix: semgrep-non-literal-import#2

Merged
girichinna27 merged 1 commit into
scanning-2from
fix/semgrep-non-literal-import-1080-0pmuIwC25n
Feb 13, 2026
Merged

fix: semgrep-non-literal-import#2
girichinna27 merged 1 commit into
scanning-2from
fix/semgrep-non-literal-import-1080-0pmuIwC25n

Conversation

@ai-remediation
Copy link
Copy Markdown

Pull Request — Semgrep Rule Fix

  • Rule ID: non-literal-import
  • Rule Message: Untrusted user input in importlib.import_module() function allows an attacker to load arbitrary code. Avoid dynamic values in importlib.import_module() or use a whitelist to prevent running untrusted code.
  • File Path: unsloth/import_fixes.py
  • Line: 1080

@girichinna27 girichinna27 merged commit 4a7f6c3 into scanning-2 Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant