{"id":"CVE-2026-88257","aliases":["CVE-2026-88257","EEF-CVE-2026-88257","GHSA-mrg2-4747-fmpw"],"related":[],"kind":"vulnerability","state":"published","title":"beam_mcp: nested tool argument constraints advertised but not enforced","summary":"Improper Input Validation vulnerability in BeamMCP.Schema in ScriptKittyOS beam_mcp allows an MCP client to reach a tool's dispatch function with arguments that violate the input schema the server advertised. BeamMCP.Schema.validate/2 checked type, required, additionalProperties, enum and numeric bounds on the top-level arguments object only. Constraints inside nested objects and on array items (items, minItems, maxItems, minLength, maxLength, pattern, nested required, enum and additionalProperties: false) were advertised by tools/list and never checked at tools/call or prompts/get, and keywords outside the enforced subset (oneOf, anyOf, $ref) were advertised and ignored.\n\nA host whose dispatch code relies on the schema it declared receives values the schema forbids, such as an out-of-range number or an undeclared key inside a nested object. What the host does with such a value decides the impact.\n\nThis issue affects beam_mcp: from 0.1.0 before 0.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Input Validation vulnerability in BeamMCP.Schema in ScriptKittyOS beam_mcp allows an MCP client to reach a tool's dispatch function with arguments that violate the input schema the server advertised. BeamMCP.Schema.validate/2 checked type, required, additionalProperties, enum and numeric bounds on the top-level arguments object only. Constraints inside nested objects and on array items (items, minItems, maxItems, minLength, maxLength, pattern, nested required, enum and additionalProperties: false) were advertised by tools/list and never checked at tools/call or prompts/get, and keywords outside the enforced subset (oneOf, anyOf, $ref) were advertised and ignored.\n\nA host whose dispatch code relies on the schema it declared receives values the schema forbids, such as an out-of-range number or an undeclared key inside a nested object. What the host does with such a value decides the impact.\n\nThis issue affects beam_mcp: from 0.1.0 before 0.10.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Input Validation vulnerability in `BeamMCP.Schema` in ScriptKittyOS beam_mcp allows an MCP client to reach a tool's dispatch function with arguments that violate the input schema the server advertised. `BeamMCP.Schema.validate/2` checked `type`, `required`, `additionalProperties`, `enum` and numeric bounds on the top-level arguments object only. Constraints inside nested objects and on array items (`items`, `minItems`, `maxItems`, `minLength`, `maxLength`, `pattern`, nested `required`, `enum` and `additionalProperties: false`) were advertised by `tools/list` and never checked at `tools/call` or `prompts/get`, and keywords outside the enforced subset (`oneOf`, `anyOf`, `$ref`) were advertised and ignored.\n\nA host whose dispatch code relies on the schema it declared receives values the schema forbids, such as an out-of-range number or an undeclared key inside a nested object. What the host does with such a value decides the impact.\n\nThis issue affects beam_mcp: from 0.1.0 before 0.10.1.\n\n## Details\n\n**1. Advertising.** `tools/list` returns each tool's `input_schema` verbatim, including nested `properties`, `items` and constraint keywords.\n\n**2. Validation.** `BeamMCP.Schema.validate/2` in `lib/beam_mcp/schema.ex` walks only the first level: `check_required/2` and `check_additional/3` run on the top-level object, and `check_properties/2` applies `check_type`, `check_enum` and `check_range` to each top-level value. A value of type `object` or `array` is accepted once its own type matches, and its contents are not visited. Keywords the validator does not know are ignored.\n\n**3. Dispatch.** `BeamMCP.Server.validate_and_dispatch/3` passes the accepted arguments to `normalize_arguments/2` and then to the host's dispatch function, so an undeclared key inside a nested object, an out-of-range nested number, or an array item of the wrong type reaches host code that believed the schema excluded it. The same validator runs on `prompts/get` arguments. The fix in 0.10.1 enforces every keyword of the documented subset at every depth and refuses a schema that uses any other keyword when the catalog is loaded.\n\n## Proof of concept\n\n1. Declare a tool whose `input_schema` has a nested object property `opts` with `\"properties\": {\"level\": {\"type\": \"integer\", \"maximum\": 3}}`, `\"required\": [\"level\"]` and `\"additionalProperties\": false`, and an array property `tags` with `\"items\": {\"type\": \"string\"}` and `\"maxItems\": 2`.\n2. Send `tools/call` with `\"arguments\": {\"opts\": {\"level\": 99, \"extra\": \"x\"}}`.\n3. On beam_mcp 0.10.0 the dispatch function receives `%{opts: %{\"extra\" => \"x\", \"level\" => 99}}`. On 0.10.1 the call is refused with `invalid arguments: unknown property: opts.extra`.\n4. Send `\"arguments\": {\"tags\": [1, 2, 3]}`. On 0.10.0 the dispatch function receives `tags: [1, 2, 3]`. On 0.10.1 the call is refused with `tags must have at most 2 items`.\n\n## Impact\n\nAn MCP client can hand a host's tool values the host's declared schema forbids, such as an out-of-range number or an undeclared key inside a nested object. The consequence depends on what the host's dispatch code does with a value it never expected to receive.\n\n## Workarounds\n\nRe-validate the arguments inside the host's dispatch function against every constraint the schema declares below the top level, or move each constraint to a top-level property, which the affected versions do enforce.","format":"markdown","source":"eef"}],"published":"2026-10-08T13:40:55.828Z","modified":"2026-11-26T17:23:08.911Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.10.1","status":"affected"}],"vendor":"ScriptKittyOS","product":"beam_mcp","package":"beam_mcp","cpe":"cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*","repo":"https://github.com/ScriptKittyOS/beam_mcp","source":"cvelist"},{"ranges":[{"type":"git","introduced":"083838eb8e17fe5f6fcaf761bdbe203110288b0b","fixed":"289dbdbad641943b29a3b8d1eb36506cc8cec10a","status":"affected"}],"vendor":"ScriptKittyOS","product":"beam_mcp","package":"scriptkittyos/beam_mcp","cpe":"cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*","repo":"https://github.com/ScriptKittyOS/beam_mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.10.1"}],"ecosystem":"Hex","package":"beam_mcp","purl":"pkg:hex/beam_mcp","source":"eef"},{"ranges":[{"type":"git","introduced":"083838eb8e17fe5f6fcaf761bdbe203110288b0b","status":"affected","fixed":"289dbdbad641943b29a3b8d1eb36506cc8cec10a"}],"repo":"https://github.com/ScriptKittyOS/beam_mcp","source":"eef"}],"references":[{"url":"https://github.com/ScriptKittyOS/beam_mcp/security/advisories/GHSA-mrg2-4747-fmpw","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-88257.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-88257","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ScriptKittyOS/beam_mcp/commit/083838eb8e17fe5f6fcaf761bdbe203110288b0b","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ScriptKittyOS/beam_mcp/commit/289dbdbad641943b29a3b8d1eb36506cc8cec10a","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/beam_mcp","tags":["package"],"sources":["eef"]}],"credits":["Ayla Croft / Script Kitty OS","Jonatan Männchen / EEF"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-08T13:59:14.866Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-88257","url":"https://www.cve.org/CVERecord?id=CVE-2026-88257","licence":"CVE Terms of Use","modified":"2026-11-19T08:22:15.843Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-88257","url":"https://osv.dev/vulnerability/EEF-CVE-2026-88257","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:08.911Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-88257","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88257","licence":"Public domain","modified":"2026-10-08T21:01:07.830Z"}],"updatedAt":"2026-11-26T17:37:33.555Z","epss":{"score":0.00268,"percentile":0.2024,"date":"2026-12-01T12:00:22.000Z"}}