# Changelog Notable changes per release. Full notes, including the reasoning behind each change, are on the [releases page](https://github.com/WebDecoy/FCaptcha/releases). This file exists because FCaptcha is a security dependency: anyone deciding whether to take an upgrade should be able to see what moved without reading a diff. **Breaking changes and anything security-relevant are called out explicitly.** The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses [Semantic Versioning](https://semver.org/) — with the caveat that pre-2.0 it has used minor bumps for behaviour changes that a stricter reading would call major. Read the **Breaking** entries rather than the number. ## [Unreleased] ### Added - Collect bounded, content-free click-prelude and global key-timing summaries for paired browser-internal agent research. The new fields are neutral telemetry: they do not emit a detection, alter a score, or affect a token. ## [1.51.3] — 2026-11-23 ### Fixed - The widget could never verify on a device whose clock ran about five minutes or more ahead of the server's: it compared the challenge's server-side expiry with the device clock, saw every fresh challenge as expired, and failed with "Challenge changed before solving". It now measures the challenge's lifetime from when it arrived, on the device clock alone. - Remove the `pointer-movement-never-zero` observation and the related fast-start stealth-CDP score floor. A real Edge user who continued moving a mouse while the page loaded demonstrated that the complete conjunction could occur during ordinary input, so it is not safe evidence of automation. Raw bounded pointer measurements remain available for future research but no longer emit a detection, observation, or blocking verdict. This release changes detector and blocking policy by retiring evidence that a legitimate-user report proved was not specific to automation. Deployments using the Go, Node, or Python server should upgrade. ## [1.51.2] — 2026-11-23 ### Added - Add deployment and installation documentation for CapRover, Better Auth, Unraid Community Apps, and IceStore, plus Artifact Hub image metadata. - Add a project accessibility policy. - Add a bounded hosted-deployment smoke mode that validates `/api/verify` and `/api/score` without reporting hosted FPR or TPR figures from correlated regression samples. ### Maintenance - Refresh the Go 1.27.4 Alpine build image and `actions/setup-go` to 7.1.0. - Update FastAPI to 0.165.0, Pydantic to 2.14.4, python-multipart to 0.0.34, and refresh the hash-locked Python environment. - Update the source-only Nuxt module's Vitest dependency to 5.1.1. There are no scoring, detector-weight, token, proof-of-work primitive, API, or blocking-policy changes in this patch release. ## [1.51.1] — 2026-11-20 ### Added - Add a tested, source-only Nuxt 4 module with an SSR-safe client component, public runtime configuration, script-load lifecycle handling, and explicit server-side verification guidance. The module remains private and is not published to npm in this release. ### Security - Override the Nuxt development tree from vulnerable `minimatch` 10.2.6 to patched 11.0.9. The remaining `picomatch` advisory was withdrawn upstream as not being a security issue and is not treated as a vulnerability. ### Maintenance - Update the Python image to 3.15.2-slim, raise the FastAPI floor to 0.163.0, and refresh the hash-locked Python environment. - Refresh Playwright, jsdom, and Vitest maintenance dependencies used by the browser harness and source-only Nuxt module. - Extend the release-version consistency test to cover the Nuxt manifest and lockfile. There are no scoring, detector-weight, token, proof-of-work primitive, API, or blocking-policy changes in this patch release. ## [1.51.0] — 2026-11-17 ### Added - The widget now advertises its supported challenge-protocol versions and all three servers return the selected `protocolVersion`. Version 1 remains the default for older clients and servers, so mixed-version deployments continue to work during rolling upgrades. - Add tested integration recipes for Gitea, Django with `django-recaptcha`, and Flask-WTF with `flask-recaptcha`, including the required browser and backend endpoint changes. ### Security - The selected protocol version is covered by the challenge signature, offers with no mutually supported version fail closed, and challenge responses now carry `Cache-Control: no-store` so an intermediary cannot share a one-use challenge between visitors. - Document the threat model and staged design for future dynamic browser instrumentation. The proposed design uses a bounded, data-only interpreter; it does not execute server-provided JavaScript and remains observation-only until paired human/agent evidence supports enforcement. There are no scoring, detector-weight, token, proof-of-work primitive, or blocking-policy changes in this release. ## [1.50.1] — 2026-11-16 ### Security - Upgrade the Hono example to `hono` 4.13.16 and `@hono/node-server` 2.1.6, resolving seven upstream advisories reported twice across its manifest and lockfile. The example did not use the affected CSRF, mount, validator, CSS, or WebSocket APIs and binds to loopback, but its direct runtime dependencies are now patched. ### Maintenance - Upgrade the Go server's `web-bot-auth` dependency from 0.4.1 to 0.5.1. - Raise the Python server's FastAPI floor to 0.162.5 and regenerate the hash-locked environment at that version. - Refresh pinned Alpine and Node container digests and the Helm setup action. There are no FCaptcha API, scoring, detector, token, or configuration changes in this patch release. ## [1.50.0] — 2026-11-11 ### Detection - Extend the monitoring-only `identity-coherence-v1` observation with a JavaScript-engine axis. It compares the engine family implied by the User-Agent with bounded error-message, math, and feature-probe measurements across the Go, Node.js, and Python servers. - Require at least two independent measurements to agree before reporting Blink, Gecko, or WebKit. Missing, unfamiliar, and conflicting evidence stays `unknown`; Chrome, Firefox, and Edge on iOS are correctly treated as WebKit, including desktop-mode iPad User-Agents. ### Tests - Add shared measured and synthetic identity fixtures for stock Chrome, Firefox, Safari, iOS browsers, deliberate contradictions, and conflicting measurements. The 507-sample regression gate remains at 0/252 human samples flagged. This observation remains monitoring-only. No production score, recommendation, token issuance, proof-of-work, rate-limit, or blocking-policy behavior changes. ## [1.49.0] — 2026-11-11 ### Added - An official `@webdecoy/fcaptcha-react` package provides an SSR-safe React 18/19 component for the interactive widget. It deduplicates resolved script URLs, destroys widgets on unmount, keeps callbacks current without rerendering the widget, retries failed script loads, and rejects conflicting global verifier configuration. - The wrapper ships TypeScript declarations, backend-verification guidance, and lifecycle coverage for StrictMode, simultaneous instances, early unmount, retries, callback changes, and server-side imports. ### Packaging - GitHub releases now publish the React wrapper alongside the Node server and browser client, with the same release version across all three npm packages. No scoring, server API, or detector behavior changes. ## [1.48.2] — 2026-11-11 ### Security - Go source builds and CI move to Go 1.26.11 / 1.27.4, which fix GO-2026-6859 in the standard library's HTTP/1 server. The minimum supported Go patch version is now 1.26.11, and published Go images build from 1.27.4. ### Measurement - A paired-observation analyzer compares browser-internal captures with their same-mode human controls, screens candidates against every captured human, and requires consistent direction plus leave-one-pair-out detection before marking a signal for promotion review. Operational identifiers, derived variants, and self-reported samples cannot become candidates. No API changes. ## [1.48.1] — 2026-11-10 ### Fixed - Precise clicks are no longer scored as automation on their own. A paired real trackpad control landed 1.62px from target center, inside the former threshold, proving the standalone signal could flag normal human input. Node, Go, and Python now apply the same corrected behavior. - Benchmark replays retain the reviewed capture endpoint, including through derived variants, so invisible `/api/score` sessions are no longer replayed as widget `/api/verify` sessions with fabricated missing-click detections. ### Measurement - The browser-internal corpus now contains five Chrome Auto Browse widget pairs and five invisible pairs: 20 captured samples total. Every capture produced a valid token and an allow verdict. Agent scores overlap their same-browser, same-profile human controls, so no browser-internal enforcement rule or score floor is introduced. No API changes. ## [1.48.0] — 2026-11-09 ### Security - Fast-start stealth-CDP sessions now receive a production score floor of 0.8 when four measured conditions agree: at least 30 pointer and coalescing samples, fewer than 5% zero movement deltas, a CDP console consumer, and a first interaction under 250 ms. Node, Go, and Python enforce the same rule. - The release benchmark catches 10/10 independent captured stealth-CDP sessions (90/90 including derived regressions) while the supported human panel remains at 0/162 flagged. Pointer movement alone remains observation-only because the recorder and some legitimate hardware can produce the same shape. ### Measurement - Experimental browser observations are retained and reported separately from production detections, including base-capture coverage for each observation. This is a verdict behavior change, not a claim of universal stealth detection. An agent can evade this rule by delaying its first interaction, and browser or hardware classes absent from the captured panel remain unproven. No API changes. ## [1.47.3] — 2026-11-09 ### Fixed - The Go server now reads the client's structured canvas fingerprint correctly, matching the Node and Python implementations. Valid canvas captures no longer produce a false "Canvas fingerprinting blocked or failed" detection, and the nested canvas hash once again contributes to Go device identity. ### Measurement - Research exports can stream into the benchmark through bounded standard input without creating an intermediate file. - A dedicated `--research-only` mode replays only ephemeral self-reported samples, isolates each sample under a temporary site key, prints exploratory scores and signals, and refuses release gates or persistent JSON output. No breaking changes. ## [1.47.2] — 2026-11-09 ### Measurement - The benchmark can replay explicitly consented hosted-demo research exports directly from the authenticated NDJSON endpoint or a local export. Imported traces stay in process memory and are never committed to the corpus or written into benchmark JSON output, preserving the demo's seven-day retention boundary. - Self-reported human labels now have their own provenance tier. They remain visible in exploratory browser, OS, input-method, and signal clusters but cannot affect headline false-positive figures, per-signal gates, or derived samples. - The research importer fails closed on schema drift, unsafe object keys, redirects, non-HTTPS URLs, unexpected content types, oversized exports, and malformed labels. It independently strips record and subject identifiers, timestamps, verdicts, user agents, screen geometry, challenge/session/site identifiers, and form field names. ### Changed - Python deployments move to Pydantic 2.14.3, Pydantic Core 2.50.4, and python-multipart 0.0.33 with refreshed hash locks. - Published images rebuild from refreshed pinned Go 1.27.3 Alpine and Node 26 Alpine base-image digests. - Development tooling moves to Playwright 1.65.0 and helm/kind-action 1.15.2. No breaking changes. ## [1.47.1] — 2026-11-08 ### Fixed - Natural trackpad movement no longer receives weak automation detections solely because the pointer reaches the checkbox without overshooting or follows a direct approach. Those checks now stand down when independent tremor and direction-change measurements already indicate a human hand, consistently across the Go, Node, and Python servers. ### Measurement - The benchmark now includes ten captured stealth-CDP agent traces and four non-automated human sessions from Chrome, Safari, and Firefox. It reports capture scenarios separately and gates regressions for agent classes the fixed corpus already detects. - A new importer validates manual capture reports, removes stale challenge state and transport-only headers, and produces replayable corpus samples with explicit browser and input labels. - On the observed macOS sessions, real-browser pointer streams coalesced two or three samples while all five humanized stealth-CDP captures maxed out at one. This is recorded as measured evidence, not a population false-positive claim. ## [1.47.0] — 2026-11-08 ### Security - Token signatures now use a language-neutral v2 canonical format across Go, Node, and Python. Verification remains compatible with legacy tokens during rolling upgrades, and signed claims include hostname, action, and cdata. - The native Node token verification handler now requires the configured verification secret, and its default replay store is shared by all scoring engines in one process. Multi-process deployments still need a shared atomic token store. - Forwarding headers are trusted only from loopback by default. Configure `TRUSTED_PROXIES` with the exact ingress or sidecar ranges in proxied deployments; the Helm chart defaults to trusting none. - Python Web Bot Auth signature headers now fail closed when they cannot be verified, and visitor-controlled reverse DNS lookups were removed from the Go and Python request paths. - Release workflows and third-party Actions are pinned to immutable revisions; manual package-publish entry points were removed and npm publication is bound to the release tag and package version. ### Changed - **Breaking:** callers of the Node library's native `tokenVerifyHandler` must send `secret`. Existing HTTP siteverify compatibility endpoints are unchanged. - **Breaking for proxied deployments:** private network peers are no longer implicitly trusted to set client IP headers. Set `TRUSTED_PROXIES` explicitly or visitors will be attributed to the immediate proxy. - **Breaking for Helm users of `existingSecret`:** set `existingSecretVersion` whenever secret material changes so the Deployment rolls pods predictably. - The bundled demo no longer loads Google Fonts, eliminating an unnecessary third-party request. ## [1.46.2] — 2026-11-03 ### Security - `qs` 6.17.1 and `body-parser` 2.4.0 in the Node server fix GHSA-6pq8-jhm2-2vcw (`qs.stringify` DoS). Upgrade if you use `@webdecoy/fcaptcha` (#147). - The Next.js example moves to `next` 16.4.5, clearing critical and high advisories in `next` <= 16.4.0. This affects only the example app, not the published packages (#148). ### Changed - The Python server image moves from Python 3.14.8 to 3.15.0 (`-slim`). - Dependency updates: fastapi 0.162.0 and pydantic 2.14.2 (Python), redis 6.3.1 (Node), and Alpine 3.24.3 plus refreshed golang and node base images (#144, #145, #146). ## [1.46.1] — 2026-10-21 ### Security - Go builds and the published image move to Go 1.26.10 / 1.27.3, which fix GO-2026-6809 in `crypto/x509`. `govulncheck` reports it as reachable from the Go server. Upgrade if you run the Docker image or build `server-go` (#140). ### Changed - Dependency updates: chi 5.5.0 and miniredis 2.40.0 (Go), fastapi 0.143.2 and pydantic 2.14.1 (Python), and a newer Node 26 base image (#137, #138, #139). ## [1.46.0] — 2026-10-15 ### Changed - **Breaking for `/recaptcha/api/siteverify` callers:** `score` on that path now follows reCAPTCHA v3, where higher is more human (`1 - score`), so an app's existing `score >= threshold` check works. FCaptcha's own score is returned alongside as `fcaptcha_score`. Turnstile and hCaptcha paths are unchanged (#132). ### Fixed - Two checks that fired for ordinary visitors no longer add to the score: the console-attach probe (`cdpRuntime.consoleAttached`), which fired in every real Chrome and Safari session measured, and "Modern macOS UA but SF Pro font not detected", which flagged every Firefox on macOS (#130). ### Added - `pointer-movement-v1` in `experimental.observations`: reports whether pointer moves ever show zero movement, as real mice and trackpads do. Observe-only; it does not affect the score or the token decision (#134). - Next.js App Router example with server-side verification, by [@CreedTech](https://github.com/CreedTech) (#131). ## [1.45.0] — 2026-10-13 ### Added - A checkbox widget inside a `
` now adds a hidden `fcaptcha_token` input and fills it on success, clearing it on reset and expiry, so no callback is needed. Rename it with `responseFieldName` / `data-response-field-name`, or turn it off with `responseField: false` / `data-response-field="false"`. A form that already has a field of that name is left alone (#119). - The widget is also served at `/turnstile/v0/api.js`, `/1/api.js` and `/recaptcha/api.js`. Loaded from one of those paths it provides that provider's JavaScript API (`render`, `getResponse`, `reset`, `remove`, `execute`, `ready`) and fills its form field, so an app that lets you change a Turnstile, hCaptcha or reCAPTCHA script and siteverify URL can point both at FCaptcha. Loaded as `/fcaptcha.js` it installs nothing, and it never replaces an existing provider global. Tested with Gitea (#120). ### Note - `score` in siteverify responses is FCaptcha's on every path, where lower is more human. Apps that only check `success` need nothing else; an app that thresholds a reCAPTCHA v3 score will reject real visitors. ## [1.44.0] — 2026-10-12 ### Security - Go builds and the published image move to Go 1.26.9 / 1.27.2, which fix vulnerabilities in `net/http`, `crypto/tls`, `mime/multipart` and `net/textproto` (#117). - server-node: `proxy-addr` 2.0.8 (GHSA-jqcg-44mw-7w3h) (#111). ### Changed - Go and Python now run the advanced fingerprint checks Node already had (speech voices, media devices, fonts vs platform, worker consistency, CSS pointer, navigator APIs, DOMRect). Python scores the `datacenter` and `tor_vpn` categories with the same weights as Go and Node (#112). - The "PoW timing suggests external processing" check now fires above 10× the expected solve time instead of 3×, on all three servers, so slow devices are not flagged (#112). - Go and Python flag missing `navigator.languages` and window outer dimensions only when the client reports them as `false`, not when the field is absent (#112). ### Dependencies - fastapi 0.143, pydantic 2.14, go-redis 9.23, plus base image and JavaScript maintenance updates (#113–#116). ## [1.43.0] — 2026-10-04 ### Added - Go client package at the repository root, `github.com/WebDecoy/FCaptcha`: `Client.Verify` redeems a token against `/api/token/verify`, and `Client.Middleware` wraps an `http.Handler` with optional action, hostname and score checks. Standard library only. It fails closed: an unreachable server or a rejected secret is an error (503 from the middleware), never a pass. IP binding is off unless you supply the visitor address. Install with `go get github.com/WebDecoy/FCaptcha` (#104). ### Tests - Keystroke cadence analysis is now covered by shared vectors that Go, Node and Python all run (#105). Behaviour is unchanged. ## [1.42.0] — 2026-09-27 ### Detection - Add the monitoring-only `identity-coherence-v1` observation under `experimental.observations` across all three servers (#98). It compares the OS the User-Agent claims with the WebGL graphics backend and the font set, and reports unknown whenever a measurement is inconclusive. Existing experimental blocking selectors do not enable it; baseline scores, tokens, and challenge costs are unchanged. ## [1.41.0] — 2026-09-24 ### Detection - Add monitoring-only browser-consistency observations under `experimental.observations` in scoring responses and verdict logs across all three servers. Existing experimental blocking selectors do not enable these observations. Missing or unsupported probes are reported as unknown; baseline scores, tokens, and challenge costs are unchanged. ## [1.40.0] — 2026-09-24 ### Detection - Scoring responses include an `experimental` object with a versioned candidate score, `wouldBlock`, and experimental detections. Monitoring is the default; `FCAPTCHA_EXPERIMENTAL_BLOCKING=stealth-corroboration-v1` opts into withholding tokens with reason `experimental_detection`. Unknown or retired names, including `true`, remain monitoring-only. Baseline scores and challenge costs stay unchanged. Opting in may reject visitors using developer tools or anti-fingerprinting tools. - Remove the WebRTC local-address check. Browsers hide local addresses by default, so it fired on ordinary visitors. The client no longer collects local IP addresses. - The page/Worker `hardwareConcurrency` consistency check now runs on Go and Python as well as Node. It contributes to the score but does not count toward the corroboration floor, because Chrome's DevTools hardware-concurrency override produces the same disagreement. ## [1.39.1] — 2026-09-23 ### Dependencies - Merge the grouped maintenance updates for containers, Python, and Go (#84–#86). - Refresh the pinned Go 1.27.1 Alpine and Node 26 Alpine container base digests. - Raise the Python `uvicorn` floor to 0.53.0; the hash lock already pins it. - Update the Go Redis client to go-redis 9.22.0 and the test-only miniredis to 2.39.0. Token format, detection, and verification behavior are unchanged from 1.39.0. ## [1.39.0] — 2026-09-14 ### Dependencies and compatibility - Merge the five grouped maintenance updates: Go, Python, containers, JavaScript, and GitHub Actions (#78–#82). - The bundled Node server now uses Express 5.2 and Redis client 6.2. Express middleware consumers may continue using Express 4; the peer declaration now also accepts Express 5. Node 22 remains the minimum supported runtime. - Upgrade Node Web Bot Auth to 0.2 and Go Web Bot Auth to 0.4.1. Migrate the Node adapter to the new request-descriptor and verifier-object API. Resolve keys and report verified identity from the signed dictionary member, not an unrelated first member. Discovery failures remain unverified presence signals; only an actual cryptographic rejection counts as forgery. - Keep Go's stricter signed-agent identity requirement; update its cryptographic fixture and retain a regression check for missing agent identity. - Raise Python requirement floors to match the supported dependency baseline; the existing hash lock already satisfies them. Update Playwright to 1.63. - Update pinned container bases to Go 1.27.1, Alpine 3.24.1, Node 26, and Python 3.14.7. Container runtime upgrades can affect custom images or extensions: validate those before deployment. Go source builds still support 1.26.8. - Update GitHub Actions and test the minimum and container runtime lines: Node 22/24/26, Go 1.26.8/1.27.1, and Python 3.12/3.14. Token format, admission limits, and browser verification behavior are unchanged from 1.38.0. Older deployments should still read [HARDENING.md](HARDENING.md). ## [1.38.0] — 2026-09-14 Read [HARDENING.md](HARDENING.md) before upgrading. This release follows the project's pre-2.0 minor-version convention but includes breaking changes. ### Breaking - Signing keys must contain at least 32 UTF-8 bytes and eight distinct characters. Generate a random key; existing weak configurations fail startup. The explicit public development key now binds launchers to loopback only. - IP-bound tokens use a domain-separated HMAC over the canonical address. Older tokens fail `remoteip` checks with new validators: drain old instances and their five-minute tokens before switching the validation pool. - Browser network failures now reject instead of creating local challenges or unsigned tokens. An empty API URL means same origin. Manual integrations must handle rejection; automatic forms remain on the page and report the error. - Node requires version 22 or later; Go builds require 1.26.8. - Public APIs enforce bounded admission: 20,000 requests globally and 600 per source per minute, with 60 challenge requests per source per minute. Backend verification requests also share their source's allowance. Check proxy trust and shared-egress capacity before deployment. Security-state exhaustion denies new work rather than evicting live challenges or replay protection. ### Security and reliability - Bound challenge issuance/storage, spent-token retention, rate state, Web Bot Auth discovery/cache/concurrency, response sizes, and outbound connections. Redis admission and challenge quotas are atomic across replicas. - Add Redis-aware `/ready`, bounded Node command deadlines/queueing, and coalesced readiness probes. `/health` remains independent process liveness. - Remove the fast-JavaScript detector from all runtimes: normal fast hardware is not evidence of automation. Benchmark results are explicitly regression evidence, not population-level accuracy measurements. - Release shared browser listeners on teardown, preserve form submission semantics, and cap proof-of-work workers at four. - Update vulnerable dependencies; hash-lock Python dependencies; pin container bases and run as non-root; add dependency automation and image provenance/SBOMs. - Extend admission, outage, lifecycle, cross-runtime, and browser regression checks. Correct the npm diagnostic workflow and browser CI server ownership. ## [1.37.0] — 2026-09-10 ### Security and fixes - Withhold the token when one page instance on one device at one address verifies more than 10 times in a minute (`reason: rate_limited`). The per-address rate detection stays as it was; it carries almost no weight, so it could not stop an automated client verifying every few seconds. Keyed on the widget instance as well, so identical machines behind one address do not share a budget. - The keyboard-only accessibility exemption now checks that key holds look like fingers when hold data is present. A keyboard-driven agent releases keys in a millisecond or two and no longer passes as a keyboard user; a visitor with no hold data, including one on an older widget, keeps the exemption. The widget reports an average key hold alongside its key count. ## [1.36.0] — 2026-09-09 ### Detection - Lower the behavioural corroboration bar from 0.5 to 0.4. Two independent behavioural categories at 0.4 now floor the score at 0.6 and withhold the token. The DevTools console-attach probe no longer counts as one of the agreeing views, so a developer with the console open contributes that one signal and nothing more. On the bench corpus no human sample reaches two agreeing categories at 0.4, the agent catch rate is unchanged from 0.5, and the false-positive gate passes. Applied to Go, Node, and Python. ## [1.35.0] — 2026-09-09 ### Security and fixes - Reject mismatched signal commitments and unmet challenge minimum ages outside the weighted score. Go consumes a verified proof even when its signal commitment fails, matching Node and Python. - Require the server-issued challenge nonce in npm engine signals, including proofs without `signalsHash`. Missing or incorrect nonces withhold tokens and produce the same diagnostic as the standalone server. - Prevent Node request errors from terminating the server. Request validation applies only to scoring POST routes; other methods retain normal routing. - Make issued tokens unique and npm verification single-use. A full local Node replay store reports `token_store_full` (Siteverify: `internal-error`) instead of reporting an unused token as a replay. - Fix expired and consumed challenge reuse and clean up browser session resources. ### Behavior changes - Invisible form protection executes a fresh verification on every submission; it no longer reuses the previous 60 seconds' score and single-use token. - Direct npm `engine.verify()` callers receive an exception with `status: 400` for malformed signal objects instead of a verification result. - Fingerprint cardinality uses fixed 15-minute windows, capped at 16 members per bucket, rather than sliding retention. - Go and Python launcher access logs are off unless `FCAPTCHA_LOG_ACCESS=1`. - Importing the Node server exports `{ app, start }`; programmatic consumers call `start()` to open a listener. CLI startup is unchanged. ## [1.34.1] — 2026-08-30 ### Fixed - **A form left open past the challenge lifetime can be solved again.** The widget fetched a proof-of-work challenge when it loaded and never replaced it, so a form filled in slowly — or a tab returned to later — submitted a solution to a challenge the server had already expired. The server refused the proof and withheld the token, while scoring the visitor as human and recommending `allow`; the checkbox reported "Verification failed". The failure path also kept the spent challenge, so every retry failed the same way until a reload. The widget now replaces a challenge at or near its expiry before solving, and lines up a fresh one after a failed attempt. Browser regression tests cover all three cases. ## [1.34.0] — 2026-08-23 ### Added - **The widget now expires its own token, and `expiredCallback` finally fires.** All three servers reject a token older than 300 seconds, but the checkbox went on showing "verified" past that point, and `expiredCallback` — present in the public options object since the first release — was invoked nowhere. A form left open for five minutes failed on submit with nothing for the integrator to react to. The widget now resets itself shortly before the server-side lifetime elapses, clears the stale token, calls `expiredCallback()` and dispatches a `fcaptcha:expired` event. A manual `reset()` cancels the pending expiry rather than reporting one afterwards. The margin means a form submitted right on the boundary is not refused by a token the checkbox still showed as good. ## [1.33.2] — 2026-08-23 ### Fixed - **Short mouse traces no longer become false zero-movement reports.** The browser client discarded the observed `totalPoints` count whenever it saw fewer than ten mouse samples, and discarded `approachPoints` below five. That made a genuine sparse trace indistinguishable from no mouse activity and could trigger the backend's zero-movement detections. The client now preserves both factual counts while keeping only the under-sampled derived trajectory metrics at neutral defaults. A browser regression test inspects the exact `/api/verify` payload for a nine-point trace. ## [1.33.1] — 2026-08-23 ### Fixed - **`errorCallback` was handed `undefined` on the most common failure.** All three servers refuse a verification with `success:false` and no `message` field, but the widget passed that absent field straight to the integrator's `errorCallback`. Anyone rendering it — as the project's own demo page did — got a blank error. The label already fell back to the localized "verification failed" string; the callback now receives that same string, and still receives the server's text verbatim when there is one. - The Node library printed the `FCAPTCHA_INSECURE_DEV_MODE` warning twice, because the challenge store and the scoring engine each resolve the secret. It warns once per process. ## [1.33.0] — 2026-08-22 ### Added - **Node and Python can run multiple replicas too.** 1.32.0 shipped Redis-backed shared state for Go only; `REDIS_URL` now does the same for the other two. All three share PoW challenges, token replay protection, Siteverify idempotency, rate limits, suspicion history, fingerprint cardinality and site-key rotation guards, with challenge and token consumption atomic. Both failure modes stay closed in every implementation: refuse to start if configured Redis is unreachable, fail closed rather than revert to process-local state if it drops out later. - **A multi-replica conformance suite.** CI starts *two* containers of each server against one Redis and proves a challenge issued by one replica verifies on the other, that token replay is rejected across replicas, and that a Siteverify idempotency response created on one is returned by the other. The same test runs unchanged against Go, Node and Python — single instance was never the hard case, and cross-replica behaviour is not something a single-process test can observe. ### Changed - The deployment documentation no longer says distributed state is Go-only, or that Node and Python must stay single-instance. The README's Redis paragraph had also contradicted its own environment table. ## [1.32.0] — 2026-08-22 ### Added - **The Go server can run more than one replica.** `REDIS_URL` moves the state that has to be shared for the security properties to hold out of process memory and into Redis: proof-of-work challenges, token replay protection, Siteverify idempotency, site-key state and suspicion history. Without it, every replica keeps its own tables — a challenge issued by one pod is unknown to the next, and single-use is only single-use per pod. - Both failure modes are closed, not open: the server **refuses to start** if a configured Redis is unreachable, and **fails closed** if it drops out while running, rather than silently reverting to process-local state. - **Go only.** Node and Python ignore `REDIS_URL` and must stay single-instance. `REDIS_URL` was documented as reserved through 1.31.0; that is now accurate only for those two. - The Helm chart refuses to render more than one replica, or autoscaling, without Redis configured — the same treatment the signing-key guard gets, and both guards are now exercised in CI. ### Fixed - The chart's `_helpers.tpl` stopped parsing when the shared-state guard was added inside the `validateSecret` define rather than after it, which took every template with it. Caught before release; no published chart was affected. ## [1.31.0] — 2026-08-22 ### Security - **The npm entry point scored with an older engine than the bundled server.** `require('@webdecoy/fcaptcha')` ran a reduced detector set and the confidence-weighted-mean aggregation that 1.18.0 replaced, without the dispositive floor added alongside it. An automated browser could therefore receive a passing verdict from the library that `server.js` would have refused. Integrations running `server.js`, the Docker image or the Helm chart were never affected; only those importing the package as a library were. Present since 1.18.0. - Both entry points now run one shared detection core. **If you integrate the library directly, re-check your score thresholds before upgrading** — the same traffic now scores higher, which is the point, but it will move where your allow, challenge and block boundaries land. ### Fixed - **Invisible scoring counted signals that only exist when there is a widget.** Approach path, exploration ratio and overshoot corrections come from the client's click analysis, which invisible mode never runs, so the servers read the absent values as evidence against the visitor. Interaction duration means time on page there rather than time spent solving, so ordinary reading tripped a captcha-farm signal. All four are now gated on the interaction mode, which the server establishes from the endpoint rather than from client-supplied signals. Go, Node and Python. - **The library did not carry the accessibility exemptions the servers had.** Touch, keyboard-only and screen-reader visitors were scored on mouse-trajectory checks that cannot apply to them, and visitors with slow or unsteady pointer movement were scored on the slow-pointer checks. The guards the servers already used are now shared. ### Changed - Node's detectors and scoring aggregation moved to `server-node/engine.js`, imported by both `index.js` and `server.js`. `server.js` behaviour is unchanged. No change to the HTTP API, the token format or the client. - `version.test.js` pins the release version across every file that carries it, including the SECURITY.md supported-versions table and a matching CHANGELOG entry. ## [1.30.0] — 2026-08-22 ### Fixed - **Token verification compared the wrong two addresses.** `POST /api/token/verify` checked the token against the socket address of whoever called it — but a token is minted for a *browser visitor*, while the verification call comes from your *backend*. Whenever those were different hosts, which is every ordinary production deployment, legitimate verifications were rejected. The endpoint now follows Siteverify semantics: `remoteip` is optional, supplying it checks the token against that visitor address, and omitting it performs no IP check. The verification caller's own socket address is never used for the comparison. Go, Node and Python. ### Added - **A cross-server conformance suite.** `test/conformance.js` runs one shared contract against each server's production container in CI. It deliberately does not compare detector scores — those differences are documented and expected — and instead pins the invariants where a divergence is a security or integration defect: proof of work required; tokens and challenges single-use; signal commitments unswappable; verification authentication and optional visitor-IP binding; signed hostname, action and cdata claims; Siteverify encoding, shape and idempotency; request-size and HEAD behaviour. Documented in `test/CONFORMANCE.md`. ## [1.29.0] — 2026-08-22 ### Breaking - **A signing secret is now required to start.** Go, Node and Python fail closed when `FCAPTCHA_SECRET` is absent or still set to the public development key `dev-secret-change-in-production`. Zero-configuration startup previously succeeded with that key, which means the tokens it signed could be forged by anyone who had read the repository. The exported Node scoring library applies the same requirement. Deployments that already set `FCAPTCHA_SECRET` are unaffected. For local-only work, set any other value or opt in explicitly with `FCAPTCHA_INSECURE_DEV_MODE=1`, which starts with the public key and warns on every boot. Docker Compose now requires the secret to be interpolated rather than falling back to a predictable default. ### Security - **Public request bodies are bounded.** All three servers cap requests at 64 KiB and reject anything larger with HTTP 413 and `{"error":"request_too_large"}`, before JSON or form parsing rather than after. Both declared-length and chunked bodies are covered. Committed browser traces run 10–15 KiB, so the ceiling leaves over four times the observed maximum while bounding the memory and parsing work an unauthenticated caller can cause. Enforcement is covered by an end-to-end invariant shared by all three implementations. ## [1.28.2] — 2026-08-22 ### Security - **The Node library could issue a token without a valid proof of work.** The HTTP servers treat the proof as a precondition, but the exported `ScoringEngine` reached through `require('@webdecoy/fcaptcha')` only counted a missing or invalid proof as weighted evidence. That evidence alone stays below the allow threshold, so a request carrying no proof at all could still be issued a token. The library now withholds the token and reports `pow_not_satisfied`, matching the servers. **Every version through 1.28.1 is affected for integrations that import the package as a library.** Deployments running `server.js`, the Docker image or the Helm chart were never affected — those paths always enforced the precondition. Upgrade if you call the `ScoringEngine` API directly. - Node dependencies moved to patched versions, clearing the `path-to-regexp`, `body-parser` and `qs` denial-of-service advisories. `npm audit --omit=dev` reports zero vulnerabilities. ### Fixed - Docker Compose no longer starts a Redis service that nothing used. ### Changed - The deployment documentation now states that challenges, replay guards, rate limits, suspicion history and idempotency are process-local, so a single instance is the supported topology. `REDIS_URL` is marked reserved rather than functional, and the documented Go requirement matches `go.mod`. ## [1.28.1] — 2026-08-20 ### Fixed - **A failed proof of work no longer floors the score.** v1.23.0 marked the PoW failures dispositive, which turned every benign cause — an expired challenge, a server restart wiping the in-memory challenge store, a double-clicked solution — into a 0.9 and a hard block on a real visitor. A verdict with a weighted sum of 0.2324, an ordinary human, was reported as 0.9. The token is still withheld by the gate, which is where the security requirement lives; only the score inflation is removed. ## [1.28.0] — 2026-08-20 ### Fixed - **The widget did not meet WCAG 2.2 AA.** An audit found seven contrast failures, the worst being the checkbox border at 1.72:1 — the visual boundary of the control. Replacement colours computed from measured ratios and annotated with them. - **No focus indicator of its own.** The control relied on the user agent's, which a host page resetting outlines removes. It now draws both an outline and a box-shadow, since an outline reset removes one and forced-colors modes remove the other. - Decorative glyphs and the spinner are hidden from assistive technology; the spinner stops under `prefers-reduced-motion`. ### Added - Nine WCAG 2.2 AA criteria verified in CI against the rendered widget, including focus visibility under a host stylesheet that suppresses outlines. The conformance position, and its boundary, is documented in `COMPLIANCE.md`. ## [1.27.0] — 2026-08-20 ### Fixed - **A browser detectable only by how it moves could not be blocked.** A source-patched browser scrubs every JS-observable automation flag, so it trips no environmental category — and since the weighted sum keeps that unused budget, such a browser had a ceiling of 0.41 against a 0.5 threshold. The corpus sample tripped seven correct behavioural detections and scored 0.234, allowed. The score is now floored at 0.6 when two or more behavioural categories independently agree. Constants swept against the labelled corpus; no human in the 126-sample panel reaches two agreeing behavioural categories at any threshold tested. - The benchmark harness timed its challenge wait from before requesting the challenge rather than from receiving it, so network latency ate the margin and the gate failed intermittently. ### Added - `COMPLIANCE.md` — what is collected, what is retained and for how long, verified against the source. Written for a DPO or a procurement questionnaire. ## [1.26.0] — 2026-08-20 ### Added - A Helm chart (`charts/fcaptcha`), which the ArtifactHub registration had been pointing at for months without one existing. Refuses to install without a signing key, warns when replicas or trusted proxies are misconfigured, and ships a `helm test` that checks more than liveness. - SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, this changelog, and issue/PR templates — including a dedicated false-positive report. ### Fixed - **`HEAD` returned 405 on the Go and Python servers** for `/health` and `/fcaptcha.js`. Express routes HEAD to its GET handler, so Node was correct and nothing compared them. Caching proxies revalidate with HEAD and uptime monitors probe with it, so a 405 reads as an outage on a working server. ## [1.25.0] — 2026-08-20 ### Added - `@webdecoy/fcaptcha-client` — the browser widget as its own npm package, so a CDN URL exists and trying FCaptcha no longer requires standing up a server. - Minified build: 131.8 KB → 67.6 KB, 17.5 KB over the wire with Brotli. - Subresource Integrity digests for both widget files, published per release. If you load the widget from a CDN, pin the version and use the hash. ## [1.24.0] — 2026-08-20 ### Added - The widget is localized into 34 languages, detected from an explicit `lang` option, `data-lang`, the page's ``, or the browser. Right-to-left layout for Arabic, Hebrew and Persian. A `strings` option overrides any key. ### Fixed - **Accessibility:** the checkbox had no accessible name — `role="checkbox"` sat beside an unassociated label, so screen readers announced "checkbox, not checked" and nothing else. State changes (verifying / verified / failed) were also never announced. Both fixed. - The Go and Python servers served the widget without a charset, so non-ASCII strings would render as mojibake on any page not already UTF-8. - `/api/score` now reports the `reason` a token was withheld, matching `/api/verify`. ## [1.23.0] — 2026-08-19 ### Security - **A valid proof of work is now required for a token.** It was previously scored as evidence rather than enforced, and because the final score is a weighted sum in which any category contributes at most its own weight (`bot` is 0.13, against a 0.5 threshold), a bare `curl` sending `{"siteKey":"x","signals":{}}` was issued a valid token — on every server, every time. Every detector fired correctly; the aggregation discarded the verdict. Present in 1.21.0 and earlier. - Missing, unverifiable and nonce-unbound solutions are now `dispositive`, so the reported score is 0.9 rather than 0.4. ### Fixed - The three servers emitted mutually unverifiable tokens (Go padded base64url, Node unpadded, Python a differently-spaced signing payload). Only surfaced in a mixed fleet, where the instance validating a token is not the one that minted it. All three now agree, and accept the old encodings. ### Breaking - A custom client calling `/api/verify` directly must complete the handshake. There is no flag to restore the old behaviour — it was a bypass. ## [1.22.0] — 2026-08-19 ### Added - Turnstile / reCAPTCHA / hCaptcha `siteverify` compatibility on `/turnstile/v0/siteverify`, `/recaptcha/api/siteverify` and `/siteverify`. Migrating an existing backend integration is a base-URL change. - Tokens carry a signed `hostname`, `action` and `cdata`, so a backend can reject a token minted on another site or for a different action. - `FCAPTCHA_VERIFY_SECRET`, `FCAPTCHA_ALLOWED_HOSTNAMES`, and `idempotency_key` support for safe retries. ### Security - **`secret` is now checked on token verification.** All three servers accepted the parameter and ignored it, so anyone who could reach `/api/token/verify` could spend a token — and since tokens are single-use, burn a real visitor's. The README had always documented sending it, which made the omission worse. ### Breaking - `/api/token/verify` requires `secret`. `FCAPTCHA_LEGACY_UNAUTH_VERIFY=true` restores the old behaviour for one release. ## [1.21.0] — 2026-07-28 ### Added - Adaptive challenge cost: escalation moved to wall-clock (`minAgeMs`) rather than proof-of-work difficulty, priced from a per-source suspicion ledger. Datacenter addresses no longer raise difficulty. ## [1.20.0] — 2026-07-28 ### Fixed - Signal accuracy: `webdriver_configurable` and `chrome_runtime_missing` fire on genuine Chrome. Measured on the bench, then removed. ## [1.19.0] – [1.19.2] — 2026-07-28 ### Added - Native JA4-TLS fingerprinting from the ClientHello when the Go server terminates TLS itself, rather than trusting a proxy header. Go 1.24. - Node and Python container images. ### Fixed - The published Docker image returned 404 for `/fcaptcha.js` for three months (`resolveClientPath` did not probe `./static/`). A smoke test now catches it. ## [1.18.0] — 2026-07-28 ### Added - The measurement harness (`bench/`): a labelled corpus, a replayer, and per-signal false-positive budgets enforced in CI. Every threshold in the behavioural layer was re-derived from it. - Input forensics v2: typing cadence, paste/platform contradictions, programmatic fill, scroll morphology, font/OS coherence. ### Fixed - **Score aggregation within a category is now noisy-OR, not a confidence-weighted mean.** The mean made corroborating evidence *lower* the verdict: WebDriver alone scored 0.950, and WebDriver plus seven more automation signals scored 0.686. - Dispositive signals (`navigator.webdriver`, driver-injected globals) set a 0.9 floor, because a weighted sum across ~12 categories otherwise caps a blatant local agent near 0.5. ## [1.17.0] — 2026-07-27 ### Added - Web Bot Auth protocol-00 typed directory discovery. - Bounded per-siteKey state: caller-supplied site keys could allocate unbounded server memory. ## [1.16.0] — 2026-07-27 ### Security - Trusted-proxy client IP resolution. `X-Forwarded-For` and `X-Real-IP` are read only from a peer in `TRUSTED_PROXIES`; previously any client could claim a clean residential address and skip the datacenter, Tor/VPN and rate-limit checks. ### Breaking - Deployments behind a reverse proxy must set `TRUSTED_PROXIES` or every visitor is attributed to the proxy. ## [1.15.0] — 2026-07-24 ### Added - Web Bot Auth (RFC 9421) signature verification against the agent's published key directory, for Go and Node. A signature claiming an identity and failing to prove it is the interesting outcome. ## [1.14.0] — 2026-06-29 ### Added - Stealth-patch artifact detection for cloud AI agents. ## [1.11.0] – [1.13.0] — 2026-06 ### Added - Declared AI agent detection (ClaudeBot, GPTBot, PerplexityBot and similar) as its own category, so a deployment can allow polite agents and block the rest. - Input-event forensics and think-time cadence. ### Fixed - Proof-of-work deadlock and reverse-DNS timeout. ## [1.6.0] – [1.10.2] — 2026-03 → 2026-06 ### Added - Signal commitment binding the challenge to the collected signals, per-challenge nonces, full 256-bit HMAC signatures. - Parallel client-side proof of work; single-origin widget delivery; mobile-native detection. ### Security - HMAC signatures are no longer truncated to 64 bits. ## [1.0.0] – [1.5.0] — 2026-02 Initial releases: proof of work, behavioural biometrics, headless and automation detection, Docker images and one-command deploys, keystroke cadence analysis. [1.28.1]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.28.1 [1.28.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.28.0 [1.27.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.27.0 [1.26.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.26.0 [1.25.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.25.0 [1.24.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.24.0 [1.23.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.23.0 [1.22.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.22.0 [1.21.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.21.0 [1.20.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.20.0 [1.18.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.18.0 [1.17.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.17.0 [1.16.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.16.0 [1.15.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.15.0 [1.14.0]: https://github.com/WebDecoy/FCaptcha/releases/tag/v1.14.0