Skip to content

v1.5.5 — Security fix: MCP SQL injection vulnerabilities

Choose a tag to compare

@pavondunbar pavondunbar released this 08 Oct 16:55
· 22 commits to main since this release

Security fixes

This release patches three injection vulnerabilities discovered in the MCP server layer (crates/vledger-mcp). All users running the MCP server on v1.5.4 or earlier are strongly encouraged to upgrade.

CVE-1 — Unescaped date strings in summarize_period / audit_report (High)

User-supplied from/to date parameters were interpolated into SQL WHERE clauses without sanitization, allowing filter-bypass attacks that could expose cross-tenant summary data and audit report entries.

Fix: validate_iso8601_timestamp() whitelist validator applied in both tools.rs and network.rs. Any character outside [0-9\-:TZ+] is rejected before SQL construction.

CVE-2 — LIKE wildcard injection in resolve_account (Medium)

The metadata LIKE search escaped single-quotes only, leaving % and _ wildcards unescaped, allowing search result manipulation.

Fix: escape_like() helper escapes \, %, and _; ESCAPE '\' added to the SQL clause.

CVE-3 — FTS5 operator injection in search_metadata (Medium)

FTS5 operator characters (*, ^, -) were not stripped from user input before phrase-quoting, allowing result-set manipulation via injected FTS5 operators.

Fix: Operator characters filtered from input before phrase-quoting in entry_db.rs.


Checksums

97781a91b7b656633cbf1f304df3c4642bb8cf6d59219d8faa982df6fb215322  vledger-v1.5.5-x86_64-unknown-linux-gnu.tar.gz
3ae7a123eec199a881afd23ab1b674bb7f51358c434e6ea3cc6a54cf8a95a825  vledger-v1.5.5-aarch64-unknown-linux-gnu.tar.gz
ece1ab29a97d7c966be37ff0c2e95afb72ea2c4f8f015505b9fb376cd14f0e11  vledger-v1.5.5-aarch64-apple-darwin.tar.gz
7bea2a59a373b4a91b0aa4f1f05e5e4b1b24bf3e51acd9341a58a9900952564b  vledger-v1.5.5-x86_64-apple-darwin.tar.gz

Full changelog

See SECURITY.md for the complete advisory and README.md for the full changelog.