Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

cocoindex-io/cocoindex

https://github.com/cocoindex-io/cocoindex · scanned 2026-05-15 03:47 UTC (3 weeks ago) · 10 languages

204 findings (93 legacy + 111 scanner) 83rd percentile · Python · medium (20-100K LoC) Scanner says 87 (lower by 6)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 3 weeks ago · v1 · 88 findings from 1 source. Findings combine the legacy security pipeline AND the multi-layer engine (atlas, wiring, flows, ranked) AND verified AI agent contributions.

JSON
Score breakdown â 2026-05-18-v5 calibration-aware
Component Sub-score Weight Contribution
structure_score 60.0 0.15 9.00
security_score 86.1 0.25 21.52
testing_score 95.0 0.20 19.00
documentation_score 86.6 0.15 12.99
practices_score 80.0 0.15 12.00
code_quality 63.8 0.10 6.38
Overall 1.00 80.9
Calibrated penalty buckets (security_score): agent: 1.1 · authz: 2.1 · threat: 10.8
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 87.4/100 with 100.0% coverage. It contains 3820 nodes across 1 cross-layer flows, written primarily in mixed languages. Engine surfaced 0 findings. Risk profile is low: 0 critical, 0 high, 0 medium. Recommended next step: open the software layer findings first — that's where the highest-impact wins live.

Showing 58 of 88 findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

critical Legacy security deserialization conf 0.85 Insecure deserialization — pickle/yaml/marshal
pickle.loads / yaml.load (without Loader=SafeLoader) / unmarshal of network/file data — RCE.
python/cocoindex/subprocess_exec.py:203 deserializationlegacy unsafe-deserialization-pickle · CWE-502 · A08:2021
critical Legacy security credential_exposure conf 0.85 Password embedded in URL
https://user:password@host — leaks creds via logs, referrer, error messages.
examples/postgres_source/prepare_source_data.sql:2 credential_exposurelegacy password-in-url · CWE-200 · A07:2021
high Legacy security injection conf 0.50 [SEC004] SQL Injection Risk: String interpolation in SQL execution. Allows SQL injection.
Use parameterized queries: cursor.execute('SELECT * FROM t WHERE id = %s', [id]). For dynamic table or column names, choose identifiers from a hard-coded allowlist and keep values in parameters.
python/cocoindex/connectors/doris/_target.py:696 injectionlegacy
high Legacy security injection conf 0.85 [SEC004] SQL Injection Risk: String interpolation in SQL execution. Allows SQL injection.
Use parameterized queries: cursor.execute('SELECT * FROM t WHERE id = %s', [id]). For dynamic table or column names, choose identifiers from a hard-coded allowlist and keep values in parameters.
python/cocoindex/connectors/postgres/_source.py:132 injectionlegacy
high Legacy quality error_handling conf 0.85 Bare except: pass — silent failure
except: pass or except Exception: pass — silently swallows everything including KeyboardInterrupt and bugs.
python/cocoindex/subprocess_exec.py:145 error_handlinglegacy bare-except-pass · CWE-755
high Legacy quality error_handling conf 0.85 except BaseException — catches SystemExit/KeyboardInterrupt
except BaseException: ... — prevents Ctrl+C and SystemExit from working.
python/cocoindex/runtime.py:65 error_handlinglegacy overcatch-baseexception · CWE-705
high Legacy quality error_handling conf 0.85 except BaseException — catches SystemExit/KeyboardInterrupt
except BaseException: ... — prevents Ctrl+C and SystemExit from working.
examples/live_updates/main.py:48 error_handlinglegacy overcatch-baseexception · CWE-705
high Legacy quality quality conf 0.85 Floats used for monetary values
Variable named price/amount/cost typed as float instead of Decimal.
examples/product_recommendation/main.py:86 qualitylegacy floats-for-money · CWE-682
high Legacy quality quality conf 0.85 Floats used for monetary values
Variable named price/amount/cost typed as float instead of Decimal.
examples/product_recommendation/main.py:47 qualitylegacy floats-for-money · CWE-682
high Legacy quality quality conf 0.85 Floats used for monetary values
Variable named price/amount/cost typed as float instead of Decimal.
examples/postgres_source/main.py:16 qualitylegacy floats-for-money · CWE-682
high Legacy quality quality conf 0.85 Imported but never used
AST detector: dead-imports
/tank0/claude-archive/opus47/cocoindex-io__cocoindex/python/cocoindex/flow.py:5 qualitylegacy dead-imports
high Legacy software supply_chain conf 0.85 Supply chain — curl | bash anti-pattern
curl ... | sh / bash — runs unverified network code.
examples/sec_edgar_analytics/docker-compose.yml:6 supply_chainlegacy curl-pipe-bash · CWE-494 · A08:2021
medium Legacy security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
authlegacy
high Legacy security auth conf 0.74 [AUC002] Low visible authorization coverage in route inventory: Only 0.0% of discovered routes show nearby authentication, authorization, middleware, or public-route evidence.
Only 0.0% of discovered routes show nearby authentication, authorization, middleware, or public-route evidence.
authlegacy
medium Legacy quality error_handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
python/cocoindex/connectors/qdrant/_target.py:339 error_handlinglegacy
medium Legacy quality error_handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
python/cocoindex/_internal/runner.py:138 error_handlinglegacy
medium Legacy quality error_handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
python/cocoindex/_internal/environment.py:533 error_handlinglegacy
low Legacy security deserialization conf 1.00 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
Use yaml.safe_load() instead of yaml.load(). Avoid pickle for untrusted data.
python/cocoindex/_internal/function.py:1069 deserializationlegacy
low Legacy security deserialization conf 1.00 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
Use yaml.safe_load() instead of yaml.load(). Avoid pickle for untrusted data.
python/cocoindex/_internal/runner.py:173 deserializationlegacy
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:776 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:775 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:773 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:771 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:770 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:769 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:729 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:668 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:652 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/cli.py:560 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:180 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:177 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:173 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:167 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:165 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
python/cocoindex/setting.py:156 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
rust/cocoindex/src/server.rs:27 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
rust/cocoindex/src/server.rs:25 authlegacy cors-wildcard · CWE-942 · A05:2021
medium Legacy security auth conf 0.85 CORS misconfiguration — wildcard Access-Control-Allow-Origin
Access-Control-Allow-Origin: * exposes the API to any browser origin. Acceptable for public read-only endpoints; dangerous when paired with credentials or write endpoints.
rust/cocoindex/src/server.rs:16 authlegacy cors-wildcard · CWE-942 · A05:2021
high Legacy security crypto conf 0.85 Crypto — plaintext HTTP for sensitive endpoint
Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
rust/cocoindex/src/server.rs:91 cryptolegacy http-not-https · CWE-319 · A02:2021
high Legacy security crypto conf 0.45 Crypto — plaintext HTTP for sensitive endpoint
Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
examples/image_search/frontend/src/App.jsx:45 cryptolegacy http-not-https · CWE-319 · A02:2021
high Legacy security crypto conf 0.45 Crypto — plaintext HTTP for sensitive endpoint
Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
examples/image_search/frontend/src/App.jsx:3 cryptolegacy http-not-https · CWE-319 · A02:2021
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
python/cocoindex/setting.py:7 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
python/cocoindex/connectors/turbopuffer/_target.py:340 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
python/cocoindex/connectors/neo4j/_cypher.py:90 qualitylegacy
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/engine_object.py:101 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/engine_object.py:99 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/typing.py:53 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/typing.py:52 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/setting.py:177 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/setting.py:173 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/engine_type.py:428 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/engine_type.py:424 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/lib.py:32 test_qualitylegacy stub-only-function · CWE-1188
high Legacy software test_quality conf 0.85 Function is stub-only (pass/raise NotImplementedError)
Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
python/cocoindex/lib.py:30 test_qualitylegacy stub-only-function · CWE-1188
high Legacy quality quality conf 0.85 Magic number used as default arg
Using hardcoded default values for complex configuration objects makes the code brittle and difficult to manage. Consider using a dedicated factory or builder pattern. Auto-promoted from proposal 444 on 2026-05-12. Synth confidence: 0.85. FP estimate: 0.00.
python/cocoindex/validation.py:32 qualitylegacy magic-number-default
high Legacy software dependency conf 0.70 Remote install command pipes network code directly to a shell
Agent helper projects often publish one-line installers. `curl | sh` style commands are convenient, but they bypass review unless the script is pinned, signed, or checksum-verified.
docs/src/content/docs/contributing/setup_dev_environment.mdx:17 dependencylegacy
high Legacy software supply_chain conf 0.85 Supply chain — npm install without lockfile
Production image runs npm install (resolves new versions on every build) instead of npm ci.
examples/fastapi_server_docker/dockerfile:13 supply_chainlegacy npm-install-no-lockfile · CWE-1357 · A06:2021
low Legacy quality quality conf 0.74 robots.txt does not advertise a sitemap
Sitemap directives in robots.txt help crawlers and AI agents find the canonical public URL inventory quickly.
docs/public/robots.txt qualitylegacy
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/ecebda09-0cac-4f20-b198-ea898eaf9be2/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/ecebda09-0cac-4f20-b198-ea898eaf9be2/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.