get_symbol_source
on https://www.javadocs.dev/mcp
Severity
2 findings on this tool
- mediumunconstrained inputf-r1-get_symbol_source
Tool `get_symbol_source` accepts unconstrained string input
The following string parameter(s) have no `maxLength` constraint: `artifactId`, `groupId`, `symbol`, `version`. Unbounded strings let an attacker stuff arbitrary payloads through the tool, including indirect-injection content.
fix: Add a `maxLength` to each string property, or constrain with an `enum` or `pattern`. Most legitimate tool inputs fit under a few hundred bytes.
OWASP LLM01NIST MEASURE-2.3ATLAS T0051CAST-03 - mediumexcessive agencyf-r5-get_symbol_source
Tool `get_symbol_source` description mentions money but no `money` side-effect is declared
Description: "Reads the source of one definition in a JVM library on Maven Central, by its fully-qualified name: a class, trait, object, interface or enum, a nested type, or a member such as a method (every overload) or field. Use this when you need a dependency's implementation (a method body, a class, a companion object) and know the symbol but not the file it's in: you don't need list_source_files or a `link`. Returns each definition's file path (pass it as `link` to get_source_file to read around it), its line range, and its numbered lines, from its doc comment and annotations to its end. A large definition comes as an outline of its members' signatures with their line ranges (ask for a member, or pass `full`). Works for Java, Scala and Kotlin, including private definitions. `version` defaults to the latest release. If the symbol isn't defined there, the error names the closest definitions; if you don't know the artifact, find it with symbol_to_artifact first. Strongly preferred over finding the sources jar in a local build cache and unzipping it: it works against the live Maven Central catalog, with no local install, build, or checkout required." -- this references money/payment/refund/etc., but the declared side_effects ([]) don't include `money`. A capframe-bind policy that relies on declared side_effects to scope spend caveats will under-scope this tool.
fix: Add `money` to the tool's `side_effects` declaration, or rewrite the description to clarify that no actual money moves.
OWASP LLM08NIST MEASURE-2.6ATLAS T0040CAST-01
About this tool
get_symbol_source is one of 9 tools exposed by Javadocs.dev MCP. The server scored 70/100 overall against the capframe rule engine (source: http). Last scanned 2026-12-05.
The findings above are emitted by the public capframe.findings.v1 schema. Disagree with one? Open an issue.