Skip to content

3ngram 1.6.3

Choose a tag to compare

@github-actions github-actions released this 09 Sep 20:59
3e0c4b8

3ngram v1.6.3

Patch: native MCP clients such as Claude Code can authorize again, and the
mail transport moves off a nodemailer release with a high-severity advisory.

v1.6.2 was tagged but never published: the release image scan rejected
nodemailer@9.0.1, so that version number is burned and this release carries
its content. @3ngram/core 0.11.2, @3ngram/schema 0.9.1 and @3ngram/db
0.10.2 reach npm for the first time here.

Changes

  • Loopback redirect URIs match on any port (#208). Claude Code registers
    through a Client ID Metadata Document whose redirect_uris are
    http://localhost/callback and http://127.0.0.1/callback with no port,
    then presents redirect_uri=http://localhost:<ephemeral port>/callback,
    because a native client cannot know its loopback port before it binds one.
    /oauth/authorize matched redirect URIs byte-exactly, so every such login
    ended in 400 invalid_client with reason=redirect_uri_mismatch. A
    presented URI now also matches when a registered URI is http on the same
    loopback host (localhost, 127.0.0.1, [::1], never cross-matched) with
    an identical path and query; only the port may differ, on either side. The
    requested URI, port included, is what the 302 targets, what the
    authorization code is bound to, and what /oauth/token compares against.
    https URIs, non-loopback http, and any path or query difference stay
    byte-exact.

  • http://[::1] is a registrable loopback redirect. redirectUriSchema
    admitted plain http only for localhost and 127.0.0.1; the IPv6
    loopback literal now joins them for DCR and CIMD alike. The hostname check
    runs against the parser-canonicalised host, so every spelling of ::1 is
    accepted and no other address is.

  • Redirect URIs must use RFC 3986 characters. Registration rejects a
    redirect URI carrying a character the URI grammar never allows unencoded
    (a backslash above all, which the WHATWG parser reads as /). The rule is
    defined once in @3ngram/schema as hasForbiddenUriCharacter and reused by
    the loopback matcher, so a registration predating this release that carries
    such a character keeps byte-exact matching and gains no port relaxation.

  • nodemailer 9.0.1 → 9.1.1 (#211). Clears GHSA-2x7j-588g-ccc2 (high,
    quadratic address-list parsing enabling remote denial of service) and three
    medium advisories on recipient-domain validation and resolveContent()
    access controls.

No migrations. Schema head stays at 0036_triage_armed_at. Both triage
mechanisms (SESSION_CLOSER_ENABLED, THREENGRAM_STOP_NUDGE) remain
default-off pending the #166 validation bar.

Immutable container reference

ghcr.io/b3dmar/3ngram@sha256:5ce08de614f89468af1de22e2b4a12b86b51f0fc8003093486cacf2cab06acfd