Changes since 1.0.0-beta4. Release candidate: no new features are planned before 1.0.0, only fixes.
A security pass over the whole module ahead of the security advisory coverage review. None of these was exploitable without an account holding the permission involved.
view factcheck results was the entity's admin permission, so anyone allowed to view results could also create, edit and delete them wherever entity access is the gate (JSON:API, REST). Viewing now needs that permission; changing or deleting needs administer factcheck settings.PageFetcher, used by the standalone fact check and the terms API, connects to the address it checked, closing a DNS rebinding window between the check and the request; follows redirects by hand, checking and pinning each hop, five at most; and reads at most 5 MB, streamed, instead of loading any response whole into memory. Without PHP's curl extension the pin cannot be applied, so URL fetches are refused rather than made unpinned.use standalone fact check is marked restrict access: the site fetches any public URL the user gives and spends API budget on it.javascript: URL from the search API made the results page fail to render.org/name repo names; the name comes from the server's response and went into the URL path.data/mbfc-ratings-full.json, ~8,700 ratings) is removed: MBFC's data is not GPL and cannot be redistributed from a drupal.org repository. Ratings come from a file you are licensed to use (--file) or live from the MBFC API (--fetch).drush factcheck:sync-bias-ratings without options no longer imports a bundled sample; the format is shown in data/bias-ratings-example.json, with invented rows. Trusted sites already imported are untouched.factcheck_trusted_sites_seeds recipe no longer quotes MBFC's rating.ai_provider_universal_terms reads terms of service or a privacy policy, pasted or by URL, and returns findings in 19 categories (arbitration, data sharing, auto-renewal, …), each quoting the clause it comes from. Every quote is checked against the text and invented ones are dropped, so the response can only hold known categories and text that really is in the document. Results are cached by the hash of the normalized text, never by who asked. Not legal advice, and every response says so.POST /api/terms/analyze?_format=json with {"text"} or {"url"}, behind the use terms analyzer permission (restrict access). JSON bodies only; cookie sessions send X-CSRF-Token; at most requests_per_hour (default 30) per user, or per IP for anonymous callers, answering 429 above it./admin/config/ai/terms: model, piece size, longest document, requests per hour.docs/terms.md.#plain_text render array; the terms controller injects the config factory and current user instead of reaching the container.composer update drupal/ai_provider_universal drupal/ai (AI 1.5 or newer).drush updb: sets the terms API's hourly limit on sites that already enabled the submodule from 1.0.x-dev.drush cr.view factcheck results: they keep viewing results but can no longer change or delete them. Roles granted use standalone fact check keep it; the permission is now flagged as restrict access on the permissions page.drush factcheck:sync-bias-ratings with no options, or with --file pointing at mbfc-ratings-full.json or mbfc-ratings-sample.json, need their own ratings file or --fetch.Content-Type: application/json, and X-CSRF-Token when authenticated by cookie.Install: composer require 'drupal/ai_provider_universal:^1.0@RC'