invarcore/knowledge-fabric
MCP-native evidence retrieval platform for AI systems.
7c85937070c3knowledge-fabric0.1.4 in pyproject.tomlio.github.invarcore/knowledge-fabricPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 10 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- CRITICAL10 production dependencies have known vulnerabilities (worst: critical).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
authlib1.9.1 or later,certifi2026.10.18 or later,dnspython2.9.2 or later,fastmcp4.1.2 or later and 6 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 8 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
check_consistency, explain_retrieval, get_document, get_evidence, get_index_status, list_sources and 1 moreNo tool was seen to: start other programs on the machine; read or write files; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (8: 8 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
check_consistencytool Run database consistency audits (detecting orphaned chunks, empty documents, null tenants).Env vars
Run database consistency audits (detecting orphaned chunks, empty documents, null tenants).
explain_retrievaltool Return diagnostic tracing and candidate scoring explanations for a query.Env vars
Return diagnostic tracing and candidate scoring explanations for a query.
Explains candidate counts, per-leg latencies, fusion scores, and degradation
status without persisting audit logs.get_documenttool Env vars
No description.
get_evidencetool Fetch a specific evidence chunk by its integer chunk ID, scoped to tenant.Env vars
Fetch a specific evidence chunk by its integer chunk ID, scoped to tenant.
get_index_statustool Return diagnostic index breakdown: document/chunk counts, sources, and storage status.Env vars
Return diagnostic index breakdown: document/chunk counts, sources, and storage status.
Scoped to tenant_id when provided.health_checktool Check server health and return runtime configuration.
Check server health and return runtime configuration.
Returns embedding provider name and dimension, DB connectivity status,
and approximate document/chunk counts. Useful for AI agents to orient
themselves before querying.list_sourcestool List ingested source types and document counts for a tenant.Env vars
List ingested source types and document counts for a tenant.
Returns distinct source_type values with document counts so an AI agent
can discover what content domains are available before issuing a query.
Use source_type as a filter in retrieve_evidence to scope retrieval.
Scoped to tenant_id when provided.retrieve_evidencetool Execute evidence retrieval across indexed content.Env vars
Execute evidence retrieval across indexed content.
Parameters:
- query_text: The natural-language or keyword search query.
- top_k: Maximum number of ranked evidence chunks to return (default: 10).
- source_type: Optional filter by source kind (e.g., 'markdown', 'confluence').
- trace_id: Optional client-supplied correlation ID for audit tracing.
- tenant_id: Tenant namespace identifier (scopes search to tenant data; defaults to configured default tenant).
- mode: Retrieval strategy: 'hybrid' (lexical + vector RRF), 'lexical' (full-text only),
or 'vector' (semantic embeddings only).
- format: Output presentation format: 'json' (standard payload), 'compact' (deduplicated token-efficient JSON),
or 'markdown' (ready-to-cite markdown text). Default is 'json'.Text the model reads (8)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
health_check tool
Check server health and return runtime configuration.
Returns embedding provider name and dimension, DB connectivity status,
and approximate document/chunk counts. Useful for AI agents to orient
themselves before querying.list_sources tool
List ingested source types and document counts for a tenant.
Returns distinct source_type values with document counts so an AI agent
can discover what content domains are available before issuing a query.
Use source_type as a filter in retrieve_evidence to scope retrieval.
Scoped to tenant_id when provided.retrieve_evidence tool
Execute evidence retrieval across indexed content.
Parameters:
- query_text: The natural-language or keyword search query.
- top_k: Maximum number of ranked evidence chunks to return (default: 10).
- source_type: Optional filter by source kind (e.g., 'markdown', 'confluence').
- trace_id: Optional client-supplied correlation ID for audit tracing.
- tenant_id: Tenant namespace identifier (scopes search to tenant data; defaults to configured default tenant).
- mode: Retrieval strategy: 'hybrid' (lexical + vector RRF), 'lexical' (full-text only),
or 'vector' (semantic embeddings only).
- format: Output presentation format: 'json' (standard payload), 'compact' (deduplicated token-efficient JSON),
or 'markdown' (ready-to-cite markdown text). Default is 'json'.get_document tool
explain_retrieval tool
Return diagnostic tracing and candidate scoring explanations for a query.
Explains candidate counts, per-leg latencies, fusion scores, and degradation
status without persisting audit logs.get_index_status tool
Return diagnostic index breakdown: document/chunk counts, sources, and storage status.
Scoped to tenant_id when provided.get_evidence tool
Fetch a specific evidence chunk by its integer chunk ID, scoped to tenant.
check_consistency tool
Run database consistency audits (detecting orphaned chunks, empty documents, null tenants).
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
Where the code is: 8 handlers in 1 file at commit 7c85937070c3
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests3 manifests: examples/04-end-to-end-with-intent/requirements.txt, examples/governed-retrieval-cmcp/requirements.txt, pyproject.toml
- Lockfiles checked against OSV3 files resolved and checked against the OSV database; 2 not resolved: examples/04-end-to-end-with-intent/requirements.txt: 2 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile; pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies CRITICAL10 production packages with known advisories
- Known vulnerabilities in other dependencies1 package with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
- Environment variables7 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (10 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
authlibPyPI 1.8.0 CRITICAL 14 advisories 1.9.01.9.1
- CRITICALGHSA-6v38-4h7w-rj9h CVE-2026-96760Authlib: empty signatures validation in JWS JSON deserialization
- HIGHGHSA-8m4g-j4wp-wgcg CVE-2026-114616 PYSEC-2026-4356Authlib accepts an empty HMAC key, allowing JWS/JWT signature forgery (HS256/HS384/HS512)
- HIGHGHSA-7vr2-2fgp-9w7p CVE-2026-114615 PYSEC-2026-4355Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keys
- HIGHGHSA-c73q-w75p-j82v CVE-2026-116672Authlib RFC 7592 examples omit registration-access-token client binding
- MEDIUMPYSEC-2026-4355 CVE-2026-114615 GHSA-7vr2-2fgp-9w7pAuthlib is a Python library which builds OAuth and OpenID Connect servers. From 1.3.1 until 1.9.0, OctKey.import_key() checks asymmetric-key markers only at byte zero while Authlib's PEM loaders accept leading whitespace, comments, or a byte-order mark. In deployments that use the documented mixed algorithm registry and already configure verification with PEM or certificate bytes containing such a prefix, an unauthenticated attacker who knows those same public-key bytes can use them as an HMAC secret and forge HS256 tokens with arbitrary identity or authorization claims. This is a bypass of the remediation for CVE-2024-37568. The module-level jwt object reaches OctKey.import_key() in authlib/jose/rfc7518/oct_key.py, where POSSIBLE_UNSAFE_KEYS fails to identify prefixed asymmetric key material. This issue is fixed in version 1.9.0.
- MEDIUMPYSEC-2026-4360 CVE-2026-114620 GHSA-x4rv-c3wx-4cr8Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, Authlib's RFC 9101 JWTAuthenticationRequest passes the unauthenticated, client-controlled request_uri parameter to the abstract get_request_object() hook before applying a destination or registration policy; the hook itself performs no network request, while the documentation demonstrates an unrestricted HTTP fetch. In deployments whose integrator implements that hook as an unrestricted outbound fetch, a remote attacker who knows a valid public client identifier can make the authorization server request internal, link-local, or otherwise unintended URLs and can distinguish fetch outcomes through different error responses and timing. Deployments whose custom hook already applies a secure allowlist, destination controls, and retrieval limits are not affected. The JWTAuthenticationRequest implementation in authlib/oauth2/rfc9101/authorization_server.py forwards request_uri to get_request_object() before an application-approved retrieval policy accepts the destination. This issue is fixed in version 1.9.0.
- MEDIUMPYSEC-2026-4356 CVE-2026-114616 GHSA-8m4g-j4wp-wgcgAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.1, Authlib's OctKey.import_key() and HMAC signing and verification path accept zero-length key material. If an application's secret lookup can return an empty string or empty bytes, a remote attacker can compute the deterministic HS256, HS384, or HS512 signature for arbitrary token claims and have Authlib treat the token as authentic. This issue is fixed in version 1.9.1.
- MEDIUMGHSA-x4rv-c3wx-4cr8 CVE-2026-114620 PYSEC-2026-4360Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRF
- MEDIUMPYSEC-2026-4359 CVE-2026-114619 GHSA-q686-2qmg-hqc7Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, OpenIDImplicitGrant.validate_authorization_request() checks the client-controlled raw request.payload.scope for openid after the parent grant has filtered allowed scopes into request.scope. A registered client permitted an ID token response type but not the openid scope can add openid to the request, obtain user consent, and receive a signed ID token containing the user's subject and allowed profile claims. Authorization code flow and deployments that allow openid for every client permitted an ID token response are not affected. In authlib/oidc/core/grants/implicit.py, OpenIDImplicitGrant.validate_authorization_request() checks request.payload.scope instead of the filtered request.scope. This issue is fixed in version 1.9.0.
- MEDIUMGHSA-fch4-3c6x-j4gc CVE-2026-114618 PYSEC-2026-4358Authlib: Default JWT bearer grant accepts assertions for the wrong audience
- MEDIUMPYSEC-2026-4357 CVE-2026-114617 GHSA-c5mf-xmp2-59rcAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, OpenIDMixin.parse_id_token() reads the nonce_supported decision from the untrusted ID token being validated and sets the expected nonce to null when that claim is the JSON boolean false. In implicit and hybrid relying parties, or applications that directly accept externally supplied ID tokens, an attacker with a captured validly signed token can bypass the nonce-to-session binding and replay the victim's token into an attacker-controlled session. Plain authorization code flow is not affected, and the token must still pass signature, issuer, and audience validation. OpenIDMixin.parse_id_token() trusts nonce_supported in both authlib/integrations/base_client/sync_openid.py and authlib/integrations/base_client/async_openid.py to disable the expected nonce. This issue is fixed in version 1.9.0.
- MEDIUMGHSA-c5mf-xmp2-59rc CVE-2026-114617 PYSEC-2026-4357Authlib: ID token can disable its own nonce validation via the nonce_supported claim
- MEDIUMGHSA-q686-2qmg-hqc7 CVE-2026-114619 PYSEC-2026-4359Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens
- MEDIUMPYSEC-2026-4358 CVE-2026-114618 GHSA-fch4-3c6x-j4gcAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, the default RFC 7523 JWTBearerGrant.get_audiences() returns an empty list, causing JWTBearerGrant.verify_claims() to require only that an aud claim exists without matching the current authorization server. An attacker holding a legitimate assertion for another service can present it to a server that shares the signing key and uses the default grant, obtaining an access token across a trust boundary. Implementations that override get_audiences() with the server's valid audience identifiers are not affected. This issue is fixed in version 1.9.0.
certifiPyPI 2026.7.22 CRITICAL 2 advisories 2026.10.18
- CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
- MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
filelockPyPI 3.32.6 HIGH 13 advisories 4.0.94.2.1
- HIGHGHSA-v4x8-3wr5-3wq8 CVE-2026-112940filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
- MEDIUMGHSA-rfpc-qcw5-3pc4 CVE-2026-112939filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker
- MEDIUMGHSA-fq56-3cx3-fjxp CVE-2026-112935filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders
- MEDIUMGHSA-j8f7-rjxc-mr56 CVE-2026-112936filelock: ReadWriteLock follows a symlink at the lock path into SQLite
- MEDIUMGHSA-69hj-f68j-2879 CVE-2026-112909filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
- MEDIUMGHSA-cwqr-hh33-gh44 CVE-2026-112915filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
- MEDIUMGHSA-6627-m3xw-93mp CVE-2026-112908filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
- MEDIUMGHSA-8mx5-7m5m-r77g CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
- MEDIUMGHSA-m462-7rxw-wvpg CVE-2026-112938filelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user chooses
- MEDIUMGHSA-9c4x-gm8v-wgc4 CVE-2026-112911filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion
- LOWGHSA-9vhv-jxww-xfm5 CVE-2026-112913filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
- LOWGHSA-9j6q-wvj5-jgjg CVE-2026-112912filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
- LOWGHSA-567q-5qvw-pf92 CVE-2026-112907filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
urllib3PyPI 2.7.0 HIGH 6 advisories 2.8.0
- HIGHGHSA-8988-9cw3-xx77 CVE-2026-97687 PYSEC-2026-4175urllib3: HTTPS proxy TLS configuration may be ignored or overridden
- HIGHGHSA-vxq7-64xx-v4gw CVE-2026-97689 PYSEC-2026-4177urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
- MEDIUMGHSA-gh4c-6fx4-qh6g CVE-2026-97688 PYSEC-2026-4176urllib3: Chunked Deflate streaming can enter an infinite loop
- MEDIUMPYSEC-2026-4177 CVE-2026-97689 GHSA-vxq7-64xx-v4gwurllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
- MEDIUMPYSEC-2026-4176 CVE-2026-97688 GHSA-gh4c-6fx4-qh6gurllib3: Chunked Deflate streaming can enter an infinite loop
- MEDIUMPYSEC-2026-4175 CVE-2026-97687 GHSA-8988-9cw3-xx77urllib3: HTTPS proxy TLS configuration may be ignored or overridden
dnspythonPyPI 2.8.0 HIGH 2 advisories 2.9.02.9.2
- HIGHGHSA-vvf4-9x63-8xvv CVE-2026-128089dnspython has excessive memory and CPU use
- HIGHGHSA-45c3-73f7-pv4m CVE-2026-114605dnspython dns.name.from_wire_parser() excessive CPU use
pyjwtPyPI 2.14.0 MEDIUM 4 advisories 2.15.0
- MEDIUMPYSEC-2026-4141 CVE-2026-101918 GHSA-42vr-xj54-vc7vPyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
- MEDIUMGHSA-42vr-xj54-vc7v CVE-2026-101918 PYSEC-2026-4141PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
- MEDIUMPYSEC-2026-4183 CVE-2026-102275 GHSA-x33g-cr3x-6449PyJWT is a Python implementation of JSON Web Token standards. From 2.1.0 until 2.15.0, PyJWT OKPAlgorithm.from_jwk in jwt/algorithms.py is affected because private-JWK import path does not compare the public key derived from d with x. This occurs when an OKP private JWK supplies non-corresponding x and d components. As a result, identity derived from x can differ from operations performed with d. Consequently, if an integration also accepts private key parameters from a proof header without rejecting them, an attacker may use a stolen sender-constrained token without the legitimate private key. This issue is fixed in version 2.15.0.
- MEDIUMGHSA-x33g-cr3x-6449 CVE-2026-102275 PYSEC-2026-4183PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion
fastmcpPyPI 4.0.10 MEDIUM 2 advisories 3.4.104.1.2
- MEDIUMGHSA-vqqp-x5qm-5qp4FastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorization server
- MEDIUMGHSA-7xgj-8392-5q4rFastMCP: Post-transform component authorization is skipped on direct calls
fastmcp-slimPyPI 4.0.10 MEDIUM 2 advisories 3.4.104.1.2
- MEDIUMGHSA-7xgj-8392-5q4rFastMCP: Post-transform component authorization is skipped on direct calls
- MEDIUMGHSA-vqqp-x5qm-5qp4FastMCP MCP client wrappers construct M2M OAuth providers without issuer binding — client secret redirectable to attacker-advertised authorization server
opentelemetry-apiPyPI 1.44.0 MEDIUM 2 advisories 1.45.11.45.2
- MEDIUMGHSA-xcq7-p3pf-p88h CVE-2026-114603OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
- MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
joserfcPyPI 1.7.5 MEDIUM 1 advisory 1.7.6
- MEDIUMGHSA-9pg5-8c7x-5hfx CVE-2026-119284joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection
1 vulnerable package outside the server itself (used only for development, tests or examples, not shipped)
setuptoolsPyPI 84.0.0 LOW 1 advisory 84.1.0
- LOWGHSA-xmj3-9gf7-h52wsetuptools: Windows path escape via namespace_packages.txt during legacy wheel installation Description
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| Servers in the code | 1 (knowledge-fabric) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-11 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.invarcore/knowledge-fabric |
|---|---|
| Listed in | 3 catalogs (glama, mcp_registry, mcp_toplist) |
| License | Apache-2.0 |
| Created | 2026-07-11 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.