v0.2.0 · live
CAPFRAME
← leaderboard/Javadocs.dev MCP/tool · get_javadoc_index
§ toolhttpJavadocs.dev MCP

get_javadoc_index

on https://www.javadocs.dev/mcp

Severity

critical0
high0
medium2
low0
info0

2 findings on this tool

  1. mediumunconstrained inputf-r1-get_javadoc_index

    Tool `get_javadoc_index` accepts unconstrained string input

    The following string parameter(s) have no `maxLength` constraint: `artifactId`, `groupId`, `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
  2. mediumindirect injectionf-r6-get_javadoc_index

    Tool `get_javadoc_index` fetches external web content -- indirect-injection surface

    Description: "Fetches the rendered Javadoc/Scaladoc index page for a specific Maven Central artifact version, converted to plain text/markdown. Useful for orienting yourself in an unfamiliar library: it lists the top-level packages, modules, and (for Scaladoc) often a curated overview. Use this before drilling into specific symbols. When the version publishes no usable javadoc jar, the index lists the Java and Scala and Kotlin declarations read from its sources jar instead. Works against the live Maven Central catalog — you do not need to download the javadoc jar." -- this tool pulls externally-controlled content into the agent's context window, the canonical indirect-injection vector. Even when the user supplies the URL, content at that URL can carry hostile instructions.

    fix: Sandbox the fetched content: strip prompts before forwarding to the model, constrain to an allow-list of domains, and route through capframe-guard with a `domain in [...]` caveat.

    OWASP LLM01NIST MEASURE-2.3ATLAS T0051CAST-02

About this tool

get_javadoc_index 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.