# Apache Druid Security

> Security practices and vulnerability patching for Apache Druid, focusing on JavaScript sandbox configuration.

- Skill: `cxcscmu/apache-druid-security-2` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/apache-druid-security-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/apache-druid-security-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/apache-druid-security-2

---


# Apache Druid Security Patching

When patching vulnerabilities related to arbitrary code execution in Druid via JavaScript filters or samplers:

1. **Identify the vulnerability point**: Look for where JavaScript is evaluated (e.g., `JavaScriptFilter`, `JavaScriptFunction`).
2. **Review sandbox settings**: Check how `JavascriptConfig` is initialized and enforced. Ensure that enabling JavaScript (`enabled: true`) is not allowing bypasses via unexpected configurations or null keys.
3. **Impose Restrictions**: Modify the logic to strictly require explicit approval for dangerous operations, or block them entirely by default.
4. **Testing**: Create a regression test that mimics the exploit payload to ensure the fix is effective.

