EEF-CVE-2026-104634 CVE-2026-104634 GHSA-wv7p-j6qh-3hj4
beam_mcp: JSON boolean and null tool arguments reach dispatch as strings
- Severity
- 0.0 / 10
- Unknown · CVSS 4.0
- Exploit chance (EPSS)
- 0.34%
- Chance of exploitation in the next 30 days. Higher than 27.68% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-704 Incorrect Type Conversion or Cast
- Fix
0.10.1- Upgrade beam_mcp to this version or later
Description
Summary
Incorrect Type Conversion or Cast vulnerability in BeamMCP.Server in ScriptKittyOS beam_mcp allows an MCP client's JSON true, false and null tool arguments to reach the host's dispatch function as the strings "true", "false" and "nil". After BeamMCP.Schema.validate/2 accepted a value as a boolean, normalize_arguments/2 passed every argument through to_json_value/1, whose atom clause converts true, false and nil to strings. A string is truthy in Elixir, so a host that tests a boolean argument, for example if args.dry_run, takes the opposite branch for false, and a guard such as confirm: false reads as set.
The client controls the argument and could send true directly, so the practical impact is limited to hosts whose behaviour on false differs from their behaviour on true, and to any policy layer in front of the server that permits false but refuses true. The same normalisation applies to prompts/get arguments, which exist from 0.5.0.
This issue affects beam_mcp: from 0.1.0 before 0.10.1.
Details
1. Validation. BeamMCP.Schema.check_type/3 accepts a JSON false for a boolean property because the decoded value is the atom false.
2. Normalisation. BeamMCP.Server.normalize_arguments/2 in lib/beam_mcp/server.ex maps each declared key to an atom and passes each value through to_json_value/1. That function was written to encode host results for the wire, and its clause when is_atom(value) converts the value with Atom.to_string/1. true, false and nil are atoms, so they become the strings "true", "false" and "nil", at any depth of the argument map.
3. Dispatch. The host receives %{dry_run: "false"}. Any string is truthy in Elixir, so if args.dry_run takes the true branch. A host result carrying booleans was stringified the same way on the way out. The fix in 0.10.1 adds a clause that passes booleans and nil through unchanged.
Proof of concept
- Declare a tool whose
input_schemahas"dry_run": {"type": "boolean"}. - Send
tools/callwith"arguments": {"dry_run": false}. - On beam_mcp 0.10.0 the dispatch function receives
%{dry_run: "false"}andif args.dry_runevaluates the true branch. On 0.10.1 it receives%{dry_run: false}.
Impact
A host that branches on a boolean argument takes the opposite branch for false, so a safety guard such as confirm: false or dry_run: false is read as set. The client already controls the argument, so the gain over sending true is limited to hosts and intermediaries that treat the two values differently.
Workarounds
In the host's dispatch function, compare boolean arguments against both forms, for example args.flag in [true, "true"] and args.flag in [false, "false"], and treat the string "nil" as null where the schema admits null.
Affected versions
Hex
| Package | Vulnerable | Fixed in |
|---|---|---|
| beam_mcp | >= 0.1.0, < 0.10.1 |
0.10.1 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
beam_mcp Hex → 0.10.1
- mix
{:beam_mcp, "~> 0.10.1"} # then: mix deps.update beam_mcp
Severity breakdown
CVSS 4.0 0.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- Low
- User interaction
- None
- Confidentiality (vulnerable system)
- None
- Integrity (vulnerable system)
- Low
- Availability (vulnerable system)
- None
- Confidentiality (subsequent systems)
- None
- Integrity (subsequent systems)
- None
- Availability (subsequent systems)
- None
Weakness
CWE-704: Incorrect Type Conversion or Cast
The product does not correctly convert an object, resource, or structure from one type to a different type.
References
Advisories
Fixes and patches
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| EEF-CVE-2026-88257 beam_mcp: nested tool argument constraints advertised but not enforced | Not rated yet | Also affects beam_mcp |
| GHSA-6pq8-jhm2-2vcw qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS) | Medium | Same weakness, CWE-704 |
| GHSA-ph72-cqr5-qpp7 vLLM: Scale-out disaggregated multimodal transport trusts caller-supplied features | Medium | Same weakness, CWE-704 |
| GHSA-g9hv-x236-4qp3 Russh: client wrong-length X25519 `clone_from_slice` panic (pre-auth DoS) | Medium | Same weakness, CWE-704 |
| GHSA-w8wr-v893-vjvp node-tar: Process crash via PAX numeric path type confusion | High | Same weakness, CWE-704 |
| GHSA-75vm-6w67-gwvp Coder's OIDC email_verified type coercion bypass enables account takeover via unverified email linking | High | Same weakness, CWE-704 |
| GHSA-q4h4-gmj2-qvw2 golang.org/x/crypto: Invoking byte arithmetic causes underflow and panic | High | Same weakness, CWE-704 |
| GHSA-83vm-p52w-f9pw vLLM: extract_hidden_states speculative decoding crashes server on any request with penalty parameters | Medium | Same weakness, CWE-704 |
Credits: Ayla Croft / Script Kitty OS, Jonatan Männchen / EEF
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor