{"id":"CVE-2026-88257","state":"PUBLISHED","title":"beam_mcp: nested tool argument constraints advertised but not enforced","description":"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.","publishedAt":"2026-10-08T13:40:55.828Z","updatedAt":"2026-10-08T14:09:41.540Z","severity":{"score":5.3,"label":"Medium","version":"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","source":"EEF"},"assigner":"EEF","products":["ScriptKittyOS beam_mcp"],"affected":[{"vendor":"ScriptKittyOS","product":"beam_mcp","packageName":"beam_mcp","packageURL":"pkg:hex/beam_mcp","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.10.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*"],"modules":["'Elixir.BeamMCP.Schema'","'Elixir.BeamMCP.Server'"],"programFiles":["lib/beam_mcp/schema.ex","lib/beam_mcp/server.ex"],"programRoutines":[{"name":"'Elixir.BeamMCP.Schema':validate/2"},{"name":"'Elixir.BeamMCP.Server':handle_message/2"}],"repo":"https://github.com/ScriptKittyOS/beam_mcp"},{"vendor":"ScriptKittyOS","product":"beam_mcp","packageName":"scriptkittyos/beam_mcp","packageURL":"pkg:github/scriptkittyos/beam_mcp","defaultStatus":"unaffected","versions":[{"version":"083838eb8e17fe5f6fcaf761bdbe203110288b0b","status":"affected","lessThan":"289dbdbad641943b29a3b8d1eb36506cc8cec10a","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*"],"modules":["'Elixir.BeamMCP.Schema'","'Elixir.BeamMCP.Server'"],"programFiles":["lib/beam_mcp/schema.ex","lib/beam_mcp/server.ex"],"programRoutines":[{"name":"'Elixir.BeamMCP.Schema':validate/2"},{"name":"'Elixir.BeamMCP.Server':handle_message/2"}],"repo":"https://github.com/ScriptKittyOS/beam_mcp"}],"references":["https://github.com/ScriptKittyOS/beam_mcp/security/advisories/GHSA-mrg2-4747-fmpw","https://cna.erlef.org/cves/CVE-2026-88257.html","https://osv.dev/vulnerability/EEF-CVE-2026-88257","https://github.com/ScriptKittyOS/beam_mcp/commit/083838eb8e17fe5f6fcaf761bdbe203110288b0b","https://github.com/ScriptKittyOS/beam_mcp/commit/289dbdbad641943b29a3b8d1eb36506cc8cec10a"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/88xxx/CVE-2026-88257.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-88257","state":"PUBLISHED","datePublished":"2026-10-08T13:40:55.828Z","dateUpdated":"2026-10-08T14:09:41.540Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-10-07T22:15:01.878Z"},"containers":{"cna":{"title":"beam_mcp: nested tool argument constraints advertised but not enforced","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ScriptKittyOS","product":"beam_mcp","packageName":"beam_mcp","packageURL":"pkg:hex/beam_mcp","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.10.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*"],"modules":["'Elixir.BeamMCP.Schema'","'Elixir.BeamMCP.Server'"],"programFiles":["lib/beam_mcp/schema.ex","lib/beam_mcp/server.ex"],"programRoutines":[{"name":"'Elixir.BeamMCP.Schema':validate/2"},{"name":"'Elixir.BeamMCP.Server':handle_message/2"}],"repo":"https://github.com/ScriptKittyOS/beam_mcp"},{"vendor":"ScriptKittyOS","product":"beam_mcp","packageName":"scriptkittyos/beam_mcp","packageURL":"pkg:github/scriptkittyos/beam_mcp","defaultStatus":"unaffected","versions":[{"version":"083838eb8e17fe5f6fcaf761bdbe203110288b0b","status":"affected","lessThan":"289dbdbad641943b29a3b8d1eb36506cc8cec10a","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*"],"modules":["'Elixir.BeamMCP.Schema'","'Elixir.BeamMCP.Server'"],"programFiles":["lib/beam_mcp/schema.ex","lib/beam_mcp/server.ex"],"programRoutines":[{"name":"'Elixir.BeamMCP.Schema':validate/2"},{"name":"'Elixir.BeamMCP.Server':handle_message/2"}],"repo":"https://github.com/ScriptKittyOS/beam_mcp"}],"references":[{"url":"https://github.com/ScriptKittyOS/beam_mcp/security/advisories/GHSA-mrg2-4747-fmpw","name":"GitHub Advisory","tags":["related","vendor-advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-88257.html","name":"EEF CNA record for CVE-2026-88257","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-88257","name":"OSV record EEF-CVE-2026-88257","tags":["related"]},{"url":"https://github.com/ScriptKittyOS/beam_mcp/commit/083838eb8e17fe5f6fcaf761bdbe203110288b0b","name":"Introducing commit 083838e in ScriptKittyOS/beam_mcp","tags":["related"]},{"url":"https://github.com/ScriptKittyOS/beam_mcp/commit/289dbdbad641943b29a3b8d1eb36506cc8cec10a","name":"Fix commit 289dbdb in ScriptKittyOS/beam_mcp","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-10-08T14:09:41.540Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:scriptkittyos:beam_mcp:*:*:*:*:*:*:*:*","versionEndExcluding":"0.10.1","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Ayla Croft / Script Kitty OS"},{"lang":"en","type":"reporter","value":"Ayla Croft / Script Kitty OS"},{"lang":"en","type":"remediation developer","value":"Ayla Croft / Script Kitty OS"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"dateAssigned":"2026-10-08T13:40:44.000Z","datePublic":"2026-09-26T00:00:00.000Z","impacts":[{"capecId":"CAPEC-153","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An 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.</p>"},{"base64":false,"type":"text/markdown","value":"An 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."}],"value":"An 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."}]}],"source":{"discovery":"INTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Re-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.</p>"},{"base64":false,"type":"text/markdown","value":"Re-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."}],"value":"Re-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."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Declare a tool whose <code>input_schema</code> has a nested object property <code>opts</code> with <code>\"properties\": {\"level\": {\"type\": \"integer\", \"maximum\": 3}}</code>, <code>\"required\": [\"level\"]</code> and <code>\"additionalProperties\": false</code>, and an array property <code>tags</code> with <code>\"items\": {\"type\": \"string\"}</code> and <code>\"maxItems\": 2</code>.</li>\n<li>Send <code>tools/call</code> with <code>\"arguments\": {\"opts\": {\"level\": 99, \"extra\": \"x\"}}</code>.</li>\n<li>On beam_mcp 0.10.0 the dispatch function receives <code>%{opts: %{\"extra\" =&gt; \"x\", \"level\" =&gt; 99}}</code>. On 0.10.1 the call is refused with <code>invalid arguments: unknown property: opts.extra</code>.</li>\n<li>Send <code>\"arguments\": {\"tags\": [1, 2, 3]}</code>. On 0.10.0 the dispatch function receives <code>tags: [1, 2, 3]</code>. On 0.10.1 the call is refused with <code>tags must have at most 2 items</code>.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. 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`."}],"value":"* 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.\n* Send tools/call with \"arguments\": {\"opts\": {\"level\": 99, \"extra\": \"x\"}}.\n* 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.\n* 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."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Advertising.</strong> <code>tools/list</code> returns each tool's <code>input_schema</code> verbatim, including nested <code>properties</code>, <code>items</code> and constraint keywords.</p>\n<p><strong>2. Validation.</strong> <code>BeamMCP.Schema.validate/2</code> in <code>lib/beam_mcp/schema.ex</code> walks only the first level: <code>check_required/2</code> and <code>check_additional/3</code> run on the top-level object, and <code>check_properties/2</code> applies <code>check_type</code>, <code>check_enum</code> and <code>check_range</code> to each top-level value. A value of type <code>object</code> or <code>array</code> is accepted once its own type matches, and its contents are not visited. Keywords the validator does not know are ignored.</p>\n<p><strong>3. Dispatch.</strong> <code>BeamMCP.Server.validate_and_dispatch/3</code> passes the accepted arguments to <code>normalize_arguments/2</code> 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 <code>prompts/get</code> 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.</p>"},{"base64":false,"type":"text/markdown","value":"**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."}],"value":"1. Advertising. tools/list returns each tool's input_schema verbatim, including nested properties, items and constraint keywords.\n\n2. 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\n3. 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."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-08T13:59:14.866448Z","id":"CVE-2026-88257","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-08T13:59:33.374Z"}}]}}}