AnQiCMS - AnQiCMS v3.6.6 Update Log (Merged v3.6.5)
Published on October 8, 2026
This article mergesv3.6.5(October 7, 2026) withv3.6.6Two versions of update content. It includes two high-risk security fixes, and it is recommended that all sites upgrade as soon as possible.
🔒 Security fix
- List sorting parameters can be injected: Template and interface
orderIn the past, sorting parameters allowed a certain degree of expression writing, which could lead to the construction of malicious queries, and then extract database content (including administrator password hashes). It has now been changed to a strict whitelist of field names: only real column names are accepted表名.列名(Can be quoted) andasc/desc, random sortingRAND()is retained separately, and the rest are discarded and fall back to the default sorting - The credentials for login between sites can be forged: The original signature for multi-site jump login was 'password hash + randomly filled in by the calling party', the random string can be repeatedly generated, the ticket never expires, and it does not check the account status or the number of errors - once the password hash is leaked, it is equal to a long-term password-free login. It has now changed to a one-time ticket issued by the server: the key is replaced with the TokenSecret of the site itself, with a validity period of 120 seconds, it is失效 once used, and cannot be issued as a long-term credential; at the same time, account status checks, and IP error locking shared with password login, and record the login time.
- ⚠️ Please complete two things after the upgrade.: There is no revoked field in the administrator credentials. If the site has been attacked, simply upgrading is not enough to clear the sessions obtained by the attacker. Please also rotate the TokenSecret of all sites (
websites.token_secret) and change all administrator passwords. - Interface echoes sensitive configuration: Fixed two issues where the site details interface echoed the database password and exposed the SMTP authorization code.
✨ New Feature
- MCP tool layer rebuilt by 'intention': The tool surface has been refactored from the original 'ability (cap)' to the intention directory, with a significant reduction in the number of tools and exposure surface, making the calling target clearer and the unauthorized surface smaller.
- Round-level batch approval: Multiple write operations within the same turn are merged into a single confirmation, no longer interrupted one by one; read operations do not disturb, sensitive paths are still confirmed one by one.
- Email subscription: New site email subscription capability, supports subscriber management and mass email distribution, with progress reporting during mass distribution.
- Message list query: New message list tool for direct query of site messages.
- Attachment tag and direct upload: Content/template supports attachment tag; MCP attachment upload supports base64 image direct upload.
- Sensitive word replacement by keyword: Sensitive words are no longer only filtered, keyword replacement is supported.
- Backup capability expansion:Site backup/restoration included static files, template backup covers more data tables.
- Template and search enhancement:
jsonFilter added encode / decode; built-in file search support**Recursive wildcard; message export adds creation time, IP, source (Referer).
⚡ Feature Optimization
- Programmatic update supports PATCH semantics:When updating documents/categories and other content, only the fields passed in will be overwritten, and the fields not passed in will automatically retain the original value and will no longer be cleared - batch title change, description change is safer.
- Tool exposure surface narrowingConverge the exposure surface of MCP tools, migrate robots-related to the operation and maintenance domain and add open access control; change the scope of capability authorization to automatic expiration and clarify it as a global scope.
- Strengthen the interface contractRebuild and embed the API directory, strengthen routing verification; unify the results into a standard envelope structure and retain pagination fields; fill in fields for interfaces that ignore some fields.
- Align built-in skills with actual capabilitiesSkills changed to call the current intent name, historical tool names automatically mapped; supplement usage instructions such as 'verify existence statement before action'.
- Merge attachment classificationRemove attachmentCategory, use category as the attachment category consistently.
- Optimize template loading logic; improve email notification process and payment handling.
systemAdd compatible field names to tags; adjust the length of the email column in the subscription table; update i18n, dependencies, and README.
Bug fixes
- Cannot see the reason when the call is rejected.: Previously restricted calls only reported 'Call not completed', but now the Chinese refusal reason and next step guidance are returned with the result, so the caller can directly read what to do.
- Panic caused by an empty body in POST.: The POST interface no longer crashes when receiving an empty request body; it will also write readable response content when recovering from panic.
- Successfully reported the deletion of a non-existent record as successful.: Deleting a non-existent record no longer returns successful.
- Document query/update silent data corruption.: Fixed the data corruption problem in the document query and update path.
- HTML cache state null pointer.: Fixed the crash in cache state tracking.
- robots.txt output error.: Fixed the content where the percentage sign was mistakenly taken as a formatting symbol.
- Translation of empty input.: Refuse empty input before initiating a network request.
- File tool error marking: Mark the MCP file tool failure correctly as an error and supplement the missing rejection text.
- Fix label url_token error, city station template construction cache error, friend link structure error.
- Fix LLMs exclusion classification not taking effect, sensitive words not taking effect immediately after saving,
sepField cannot be saved. - Supplement the missing favorite_count field in the archives table.