Skip to content

Release 2.26.0: new tools, second opinion, coin alerts - #2134

Merged
MikeyPetrillo merged 10 commits into
mainfrom
claude/sweet-brown-i99jl3
Dec 5, 2026
Merged

MikeyPetrillo merged 10 commits into
mainfrom
claude/sweet-brown-i99jl3

Conversation

@MikeyPetrillo

@MikeyPetrillo MikeyPetrillo commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Version 2.26.0. The changelog lists every change.

New tools

  • second-opinion asks several models one question and returns one answer that says where they disagreed.
  • launch-check reads a page before it goes live.
  • licensed-media-search finds images whose license allows reuse.
  • coin-alert sends one signed POST when a coin crosses a price you set.

Changes

  • A weather page at /weather and a home page card: rank up to 50 sites by weather risk in one call.
  • 40 tools answer an uncharged error, not an empty or zero result, when their data source replies without its data.
  • weather-window names the weather limit that ruled out the most daylight hours.
  • Scheduled posts can carry an image.
  • The image tools' library is updated, with the same pictures out.
  • A signed offer is in the 402's JSON body instead of a header, on servers that sign offers.
  • site-crawl can read a site's sitemap pages first.
  • sql-guard reads statements with PostgreSQL's own parser.
  • The start page shows a new phone video while credits are on sale.
  • A model is not offered where the company behind it does not serve.
  • The Lightning refund claim needs proof from the buyer who paid.
  • The delivery guarantee setting is gone.

Off until a server turns them on: credits for personal use by buyers in the US, the second, post-quantum signature on receipts, the Solana structure check, and BNB Chain payments.

Structure: nine page modules moved out of src/server.js with no change in behavior.

@MikeyPetrillo
MikeyPetrillo marked this pull request as ready for review December 4, 2026 21:27
@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security

strix-security Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Strix Security Review

To fix before merging (2)

PR summary: Version 2.26.0 of Agent402: new paid tools (second-opinion, launch-check, licensed-media-search, coin-alert), a /weather page, BNB Chain payments, personal-use credits, a post-quantum receipt signature, a signed offer moved into the 402 body, hardened SQL guard and crawl options, plus nine page modules split out of src/server.js.

Review summary

Release 2.26.0 is a large but mostly hardening release: the money-path changes hold up under tracing (BNB Chain's 18-decimal amounts, the Lightning refund-claim proof, the post-quantum receipt signature and the personal-use credits gate are all correctly bound), and the fifty-odd module moves out of src/server.js preserved every authorization, limiter and cache header. Two low-severity issues remain: the new launch-check tool serves a checked site's own title/description/link text into a paid answer without the repo's untrustedContent marker, and the coin-alert pre-read guard that counts in-flight registrations per process still lets a burst spread over replicas spend shared CoinGecko reads for a registration the per-payer cap then refuses (reported again from the prior review). The previously reported personal-use refusal-email issue is fixed: the notice now goes only to the address pinned in the checkout's metadata.

11 resolved findings
Ruled out (10)
  • Does name-records relay editable Wikidata/Commons text without the untrusted-content marker?
    The tool and its Commons/Wikidata relays are unchanged on main and the PR only hardened those helpers, so the gap is pre-existing with no newly exposed route or caller.
  • Can a caller force an unbounded upstream body through contract-source or contract-abi?
    The unbounded `res.json()` read is byte-identical before and after the PR, and the added sourceField check is an O(1) presence test on the already-parsed body.
  • Can eth-call forward an unbounded eth_getLogs query or oversized RPC result?
    The missing span/result caps live in eth-call and publicJsonRpc, neither of which the diff touches, and the forwarded params are already bounded by the global 100kb JSON body limit.
  • Do the chain kits buffer any upstream body whole with no byte cap?
    The buffering sits in publicJsonRpc/alchemyFetch, unchanged by this PR, and the new validation helper only changes post-parse semantics in the safe direction.
  • Can an unpaid subscription session provision an active monitor with no payment check?
    Those provisioning lines predate the PR, and every paid run still goes through stillActive's live Stripe read, which refuses an unpaid subscription.
  • Can a small GIF make the new decoder allocate past the image tools' pixel ceiling?
    Both entry points cap the declared logical screen before decode, so the canvas allocation stays inside the same 16M/40M-pixel budget the tools already accept for legitimate images.
  • Is the deflate-TIFF strip bound a no-op when a page lists strip offsets without byte counts?
    That check and its caller are untouched, and the utif decoder reads the same tags and throws before inflating when the count is absent.
  • Does an unbudgeted PNG/JPEG header walk let an unauthenticated caller stall the event loop?
    The walk is pre-existing and its measured cost is comparable to the base64/JSON work the same thread must already do for the same body, under existing body-size and rate limits.
  • Can a caller-named Solana feePayer strip the paying wallet out of the sanctions screen?
    The shared payment path deep-compares accepted requirements against the server's own, exempting only blockhash fields, so a caller-chosen feePayer never reaches verification.
  • Can a caller force Solana payer identity onto the facilitator fee-payer address?
    The caller-supplied feePayer is rejected by the requirements match, the fallback code is unchanged by the PR, and the new structure reader is not used by any payer-identity consumer.
Review history (7)
  • Review 7 · 74896ba · Dec 5 00:53 UTC · Found 1 new Low Vulnerability · Fixed 1
  • Review 6 · 7574911 · Dec 5 00:34 UTC · Found 1 new Low Vulnerability · Fixed 2
  • Review 5 · b896600 · Dec 5 00:12 UTC · Found 1 new Medium Vulnerability and 1 new Low Vulnerability · Fixed 4
  • Review 4 · 2b4a828 · Dec 4 23:56 UTC · Found 4 new Low Vulnerabilities · Fixed 4
  • Review 3 · a63d612 · Dec 4 23:40 UTC · Found 1 new Medium Vulnerability and 2 new Low Vulnerabilities
  • Review 2 · 144a83f · Dec 4 23:27 UTC · Nothing new
  • Review 1 · 026c01b · Dec 4 21:36 UTC · Found 1 Medium Vulnerability and 1 Low Vulnerability

Fixed the findings? re-run the review, or tag @strix-security in a PR comment to run a fresh review.

Review 7 on this PR · 74896ba · requested Dec 5 00:44 UTC by @MikeyPetrillo


Reviewed by Strix
Re-run review · Configure security review settings · Try a deeper review with @strix-security /deep

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged 2 new security findings below. See the pinned summary comment for the full PR status.

Comment thread src/tools/licensed-media-kit.js Resolved
Comment thread src/price-webhooks.js Outdated
if (!key) throw bad(`${kind.many[0].toUpperCase()}${kind.many.slice(1)} are not configured on this server (no signing key), so nothing was registered.`, 503);
// The host is resolved and refused when it is not public (a 400 from the guard).
await checkUrl(target.url);
if (kind.prepare) fields = { ...fields, ...(await kind.prepare(fields)) };

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MEDIUM: Refused registrations still spend the shared CoinGecko read budget

TL;DR: Any API caller can exhaust the service-wide CoinGecko day budget by posting coin alerts that are refused, since each refused attempt still spends a price read and is never charged. store() runs the kind's prepare hook, which does the price read, before it checks the registrant's cap and the store's hard bound. Checking those refusals before prepare runs fixes it.

Cause, impact and fix

Cause: The generalized store() calls kind.prepare before its own refusals, so the coin-alert prepare hook reads prices for the control coin plus the requested coin, and then the registrant cap (409) or the store bound (503) is thrown inside the same handler with nothing given back. The guard on unpaid reads does not stop it because a listed coin id passes knownIdGate.

Impact: A single caller can spend the shared day budget with refused, uncharged requests, after which every CoinGecko-backed tool refuses and other buyers' coin alerts stop being checked until UTC midnight.

Fix: Check the registrant's cap and the store's hard bound before kind.prepare runs, so a registration the store will refuse never spends an upstream read first.

🟡 Refused coin-alert registrations spend the shared CoinGecko daily read budget for free

Severity: MEDIUM

TL;DR: The coin-alert prepare hook reads CoinGecko prices before store() checks the registrant's cap, so every refused 409 registration still spends one read from the service-wide day pool and is never charged.

Impact: Any API caller can spend the entire shared CoinGecko day budget with ~300 refused, uncharged requests, making every CoinGecko-backed paid tool refuse and stopping all coin-alert checks for other buyers until UTC midnight.

Root cause:

  • The generalized store runs a kind's prepare hook before its own refusals, so a new kind can spend a paid upstream read on a registration the store then refuses without any settlement to pay for that read.
  • The registrant cap (409 own:true, line 488) and the store bound (503 charged:false, line 496) are thrown inside the handler after kind.prepare already called read() for bitcoin plus the requested coin, and nothing gives the spent read back.
  • Nothing bounds a caller's repeated refused attempts: the 300-read day ceiling is the only stop, and the code's own bound on unpaid reads (the unsettled share, 30 per day and 8 places per caller per hour) does not apply because knownIdGate returns a listed coin id as confirmed and the price read proceeds.
Prompt to fix with AI
This is a security vulnerability found during a code review.

Vulnerability: Refused coin-alert registrations spend the shared CoinGecko daily read budget for free
Severity: MEDIUM
CWE: CWE-770

**TL;DR:** The coin-alert `prepare` hook reads CoinGecko prices before `store()` checks the registrant's cap, so every refused 409 registration still spends one read from the service-wide day pool and is never charged.

**Impact:** Any API caller can spend the entire shared CoinGecko day budget with ~300 refused, uncharged requests, making every CoinGecko-backed paid tool refuse and stopping all coin-alert checks for other buyers until UTC midnight.

**Root cause:**
- The generalized store runs a kind's `prepare` hook before its own refusals, so a new kind can spend a paid upstream read on a registration the store then refuses without any settlement to pay for that read.
- The registrant cap (409 `own:true`, line 488) and the store bound (503 `charged:false`, line 496) are thrown inside the handler after `kind.prepare` already called `read()` for `bitcoin` plus the requested coin, and nothing gives the spent read back.
- Nothing bounds a caller's repeated refused attempts: the 300-read day ceiling is the only stop, and the code's own bound on unpaid reads (the unsettled share, 30 per day and 8 places per caller per hour) does not apply because `knownIdGate` returns a listed coin id as confirmed and the price read proceeds.

Location: src/price-webhooks.js:465-465
Context: The prepare hook (and its source read) runs before the registrant cap and store bound are checked
```
// Before:
    if (kind.prepare) fields = { ...fields, ...(await kind.prepare(fields)) };
// After:
    // A registration the store is going to refuse must not spend a source read
    // first: it is never settled, so nobody pays for that read and it comes out
    // of the day every other caller shares.
    const who0 = typeof registrant === "string" && registrant ? registrant : null;
    const owner0 = who0 ? ownerDigest(key, who0) : null;
    if (owner0) {
      const held = await doc.read({ quiet: true });
      const mine0 = held?.ok ? Object.values(bodyOf(held.body).subs).filter((s) => s.owner === owner0) : [];
      const cap0 = maxPerRegistrant(env);
      if (mine0.length >= cap0) throw bad(`This registrant already holds ${cap0} ${kind.many}, the most one may hold, so this one was not registered. Remove one first (POST ${kind.unsubscribePath}, free)${kind.renews ? ", or register a URL it already holds to renew that one" : ""}.`, 409, { own: true });
    }
    if (kind.prepare) fields = { ...fields, ...(await kind.prepare(fields)) };
```

Location: src/coin-alerts.js:102-111
Context: The price read is spent before the store's refusals, and the later 422s are also uncharged

How to fix:
Refuse a registration for the registrant's own cap (409) and for the store's hard bound (503) before any `kind.prepare` runs, so a registration that cannot be kept never spends an upstream read. Alternatively, make the registration's source read draw from the budget kept for calls nobody pays for (the unsettled share, `cgReserveUnconfirmed`) or give it its own per-caller daily read allowance, since a refused call is never settled and so no buyer funds that read.

Please fix this vulnerability. If you propose a fix, make it concise and minimal.

React 👍 / 👎 to tune Strix for this repo. A repo collaborator (or the PR author) can resolve this thread to dismiss these findings.

@socket-security

socket-security Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​jimp/​core@​2.0.0 ⏵ 2.2.199 +110074 +193 +5100
Updatednpm/​marked@​18.3.0 ⏵ 18.4.0100 +1100100 +198 +180
Updatednpm/​jimp@​2.0.0 ⏵ 2.2.19810010093 +5100

View full report

@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged 3 new security findings below. See the pinned summary comment for the full PR status.

Comment thread src/tools/chain-kit.js Resolved
Comment thread src/coin-alerts.js Resolved
Comment thread src/tools/licensed-media-kit.js Resolved
@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged 4 new security findings below. See the pinned summary comment for the full PR status.

Comment thread src/tools/provenance.js Resolved
@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged 2 new security findings below. See the pinned summary comment for the full PR status.

Comment thread src/tools/provenance.js Resolved
Comment thread src/coin-alerts.js Resolved
@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged a new security finding below. See the pinned summary comment for the full PR status.

Comment thread src/credits.js Resolved
@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@strix-security strix-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strix flagged a new security finding below. See the pinned summary comment for the full PR status.

},
},
},
handler: (i) => launchCheck(i),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 LOW: Launch check returns page-written text without the untrusted-content marker

TL;DR: A site owner can shape the buyer's tool-enabled agent with text in their own page title or meta tags, because the answer carries no sign that the text came from a stranger. Every other page-reading tool labels such text as data, but launch-check returns it as ordinary fields. Returning the answer through markUntrusted fixes it.

Cause, impact and fix

Cause: launchChecks copies the page's title, description, share-card and icon strings into each check's found field through a helper that only collapses whitespace and truncates, and the handler returns that object unchanged. The kit never imports the marker that its sibling page-reading kits apply, so a new kit opts out of the catalog's untrusted-content rule simply by not calling it.

Impact: A site owner can put instruction-shaped text in their own page title, description or links and it arrives in the buyer's agent unmarked, so the agent has no signal that acting on that text would be obeying a stranger.

Fix: Return the launch-check answer through markUntrusted so it carries untrustedContent: true, and extend the tool description, as extract and page-change do, to state that the page-derived found strings are external data and never instructions.

🔵 New `launch-check` tool returns a checked site's own title, description and link text without the `untrustedContent` marker

Severity: LOW

TL;DR: launch-check copies a checked site's title, meta description, og:title, icon/canonical href and robots.txt rule into its paid answer unmarked, while every other page-reading tool stamps untrustedContent: true.

Impact: A site owner can put instruction-shaped text in their page title or meta tags and it is delivered, unmarked, into the buyer's tool-enabled agent, which has no signal that this text comes from a stranger and carries no authority.

Root cause:

  • The catalog's untrusted-content rule (R-14 in src/tools/provenance.js, restated in the published agent skill: answers carrying third-party text are marked untrustedContent: true) is applied per kit rather than by the registration layer, so a new kit silently opts out by not importing markUntrusted.
  • launchChecks copies page-written strings straight into the answer's found fields through short(), which only collapses whitespace and truncates at 200 characters, and the tool's handler returns that object verbatim.
  • The surrounding catalog already treats page titles as third-party text: crawl-kit.js marks site-map because it carries "page titles", and summarize-kit.js marks its page path, so this is a skipped pattern rather than an accepted one.
Prompt to fix with AI
This is a security vulnerability found during a code review.

Vulnerability: New `launch-check` tool returns a checked site's own title, description and link text without the `untrustedContent` marker
Severity: LOW
CWE: CWE-829

**TL;DR:** `launch-check` copies a checked site's title, meta description, og:title, icon/canonical href and robots.txt rule into its paid answer unmarked, while every other page-reading tool stamps `untrustedContent: true`.

**Impact:** A site owner can put instruction-shaped text in their page title or meta tags and it is delivered, unmarked, into the buyer's tool-enabled agent, which has no signal that this text comes from a stranger and carries no authority.

**Root cause:**
- The catalog's untrusted-content rule (R-14 in `src/tools/provenance.js`, restated in the published agent skill: answers carrying third-party text are marked `untrustedContent: true`) is applied per kit rather than by the registration layer, so a new kit silently opts out by not importing `markUntrusted`.
- `launchChecks` copies page-written strings straight into the answer's `found` fields through `short()`, which only collapses whitespace and truncates at 200 characters, and the tool's handler returns that object verbatim.
- The surrounding catalog already treats page titles as third-party text: `crawl-kit.js` marks `site-map` because it carries "page titles", and `summarize-kit.js` marks its page path, so this is a skipped pattern rather than an accepted one.

Location: src/tools/launch-check-kit.js:200-200
Context: return the answer through markUntrusted
```
// Before:
    handler: (i) => launchCheck(i),
// After:
    handler: async (i) => markUntrusted(await launchCheck(i)),
```

Location: src/tools/launch-check-kit.js:22-22
Context: import the provenance helper
```
// Before:
import { registrableDomain } from "../operator-key.js";
// After:
import { registrableDomain } from "../operator-key.js";
import { markUntrusted } from "./provenance.js";
```

Location: src/tools/launch-check-kit.js:105-110
Context: site-written strings copied into `found`
```
  const text = (id, value, fix) => add(id, false, page, () => verdict(Boolean(value()), short(value()) || "none", fix, "warn"));
  text("title", () => page.data.title, "Add a title that says what the page is.");
  text("description", () => page.data.meta.description, "Add a meta description.");
  text("phone-layout", () => page.data.meta.viewport, "Add a viewport meta tag so phones lay the page out at their width.");
  text("share-card", () => page.data.meta["og:title"] && page.data.meta["og:image"], "Add og:title and og:image so a shared link shows a card.");
  text("icon", () => page.data.links.find((l) => l.rel.includes("icon") || l.rel.includes("apple-touch-icon"))?.href, "Declare an icon for browser tabs.");
```

How to fix:
Wrap the `launch-check` handler in `markUntrusted` (or call `relaysStrangersText` on `LAUNCH_CHECK_TOOLS`) so the answer carries `untrustedContent: true`, and extend the tool description, as `page-change` and `extract` do, to say the page-derived `found` strings are external data and never instructions.

Please fix this vulnerability. If you propose a fix, make it concise and minimal.

React 👍 / 👎 to tune Strix for this repo. A repo collaborator (or the PR author) can resolve this thread to dismiss these findings.

@MikeyPetrillo
MikeyPetrillo merged commit c24c580 into main Dec 5, 2026
85 of 86 checks passed

This branch had an error being deployed

1 failed deployment
agent402 / production — 74896ba5 Deployed Dec 5, 2026 by MikeyPetrillo via publish #6640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant