Skip to content

v1.4.1

Latest

Choose a tag to compare

@firstelementjp firstelementjp released this 27 Oct 14:52
· 8 commits to main since this release
16dc61c

This release fixes two security issues: anonymous visitors could inflate paid AI API usage with unbounded chat input (cost amplification), and remote endpoint output from the API key connection test was rendered as HTML in the admin dashboard (XSS). It also splits admin and public AJAX nonces, excludes password-protected posts from indexing and chat context, and keeps the Qdrant vector store free of stale chunks during realtime sync.

Security

  • Bounded chat request input sizes to prevent cost amplification (denial of wallet): questions are capped at 1000 characters, conversation history is limited to the most recent 10 messages with per-message (2000 characters) and combined (16000 characters) budgets, and the raw history payload is byte-capped before decoding — all adjustable via the new fe_search_ai_chat_input_limits filter
  • Fixed an admin-side XSS vector in the API key connection test: the AJAX endpoint now returns structured status data rendered via textContent with is-success / is-error CSS classes instead of inserting remote endpoint output as HTML
  • Split admin and public AJAX nonces: fe_search_ai_admin_nonce now guards admin-only endpoints together with current_user_can( 'manage_options' ) checks, while the public nonce remains only for visitor-facing chat endpoints

Search and Sync

  • Password-protected posts are no longer indexed or returned as chat context, and their index rows and Qdrant points are deleted when a post becomes protected or unpublished
  • Realtime post indexing now mirrors vectors to Qdrant (delete-then-upsert), so the external vector store no longer retains stale chunks

Documentation and Tests

  • Documented the fe_search_ai_chat_input_limits filter in the hooks reference (English and Japanese)
  • Added unit tests covering chat input limits, post visibility exclusion, Qdrant cleanup, and realtime mirroring

What's Changed

  • deps(deps-dev): bump fast-uri from 3.1.8 to 3.1.9 by @dependabot[bot] in #116
  • deps(deps): bump dompurify from 3.4.16 to 3.4.17 by @dependabot[bot] in #117
  • Switch announce job to self-hosted macOS runner by @dxd5001 in #118
  • Support per-language category IDs in announcement script by @dxd5001 in #119
  • Add per-release highlight suffix to announcement post titles by @dxd5001 in #120
  • Update JA docs README current release section to v1.4.0 by @dxd5001 in #121
  • deps(deps-dev): bump the npm-development group with 2 updates by @dependabot[bot] in #122
  • Security hardening: chat input caps, admin XSS fix, nonce split, and private-post exclusion by @dxd5001 in #123
  • Prepare release v1.4.1 by @dxd5001 in #124

Full Changelog: v1.4.0...v1.4.1