[GH-ISSUE #22715] [Security] eval() in config.py + CORS wildcard in Swagger UI #58461

Closed
opened 2026-05-05 23:12:47 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @hhhashexe on GitHub (Mar 16, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22715

Found via SkillFence automated scan.

Finding 1: config.pyeval() dynamic code execution.

Finding 2: swagger-ui-bundle.js — CORS wildcard (*) pattern.

Finding 3: mineru.py — Authentication disabled pattern.

Recommendation:

  • Replace eval() with safe alternatives
  • Restrict CORS to specific origins
  • Enable auth by default

Scan: npx skillfence scan . (82 critical, 87 high)

Responsible disclosure via automated security scanning.

Originally created by @hhhashexe on GitHub (Mar 16, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22715 Found via [SkillFence](https://npmjs.com/package/skillfence) automated scan. **Finding 1:** `config.py` — `eval()` dynamic code execution. **Finding 2:** `swagger-ui-bundle.js` — CORS wildcard (*) pattern. **Finding 3:** `mineru.py` — Authentication disabled pattern. **Recommendation:** - Replace eval() with safe alternatives - Restrict CORS to specific origins - Enable auth by default Scan: `npx skillfence scan .` (82 critical, 87 high) Responsible disclosure via automated security scanning.
Author
Owner

@pr-validator-bot commented on GitHub (Mar 16, 2026):

⚠️ Missing Issue Title Prefix

@hhhashexe, your issue title is missing a prefix (e.g., bug:, feat:, docs:).

Please update your issue title to include one of the following prefixes:

  • bug: Bug report or error you've encountered
  • feat: Feature request or enhancement suggestion
  • docs: Documentation issue or improvement request
  • question: Question about usage or functionality
  • help: Request for help or support

Example: bug: Login fails when using special characters in password

<!-- gh-comment-id:4064355995 --> @pr-validator-bot commented on GitHub (Mar 16, 2026): # ⚠️ Missing Issue Title Prefix @hhhashexe, your issue title is missing a prefix (e.g., `bug:`, `feat:`, `docs:`). Please update your issue title to include one of the following prefixes: - **bug**: Bug report or error you've encountered - **feat**: Feature request or enhancement suggestion - **docs**: Documentation issue or improvement request - **question**: Question about usage or functionality - **help**: Request for help or support Example: `bug: Login fails when using special characters in password`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58461