Only run allowed provider methods from /integrations/function

fix(integrations): only run allowed provider methods from /integrations/function
Only run allowed provider methods from /integrations/function9383f5-fix-only-run-allowed-provider-methods-from-cve-2026-115931fixonly run allowed provider methods integrations

Committed by nevo-david

commit message
fix(integrations): only run allowed provider methods from /integrations/function

The route now runs a provider method only if it is a @Tool, as the public
API and MCP triggers already require, or is marked with the new
@DashboardFunction decorator. The non-tool methods the dashboard calls are
decorated: mention, company, companies, pages and tags.
/integrations/mentions now always runs mention.
 
CVE-2026-115931
 
Co-Authored-By: Claude Opus 5.5 <[email protected]>

Editor assessment

This commit patches CVE-2026-115931. Clear and specific. The body explains the allowlist change: the route now runs a provider method only if it is a @Tool (the rule the public API and MCP already enforce) or is marked with the new @DashboardFunction decorator, and it lists the decorated methods. It also notes the /integrations/mentions behavior. The subject is precise and the integrations scope is right. A short threat statement would push it to a 5, but the change is understandable as written. The header and integrations scope are correct and the body is concise; a scope-less subject is acceptable here because the body names the route and the decorator contract precisely.

Browse categories

More fix examples · Back to search