Skip to content

Changelog

New updates and improvements at Cloudflare.

Introducing Search for Agents

Search for Agents makes your website searchable by AI agents without manually configuring a search integration. Turn it on under Quick Actions on your domain's Overview page in the Cloudflare dashboard. Cloudflare creates an AI Search instance, starts indexing your content, and exposes a search endpoint on your domain.

Search for Agents toggle turned on in the Cloudflare dashboard, with a Beta badge and a link to feature documentation.

Cloudflare adds discovery metadata to your HTML pages and, when Markdown for Agents is on, to Markdown responses. Agents can discover the endpoint and search with keywords or natural-language queries:

curl --get "https://example.com/.well-known/search" \
  --data-urlencode "q=How do I verify webhook signatures?"

The endpoint supports both GET and HTTP QUERY requests. It returns relevant content in Markdown, not an AI-generated answer, so agents can use the results with their own models.

Search for Agents is available on all plans. Usage is subject to AI Search pricing and plan limits. You can customize configurable settings in the AI Search instance created for your domain.

Read the announcement blog post ↗︎ and refer to the Search for Agents guide for setup instructions and default settings.

Activate Cloudflare subscriptions from the CLI and MCP

You and your agents can now activate Cloudflare subscriptions from the Cloudflare CLI (cf) or Cloudflare Model Context Protocol (MCP) servers, without switching to the dashboard.

Previously, OAuth sessions used by cf and MCP could not create subscriptions, so activating a product meant leaving your terminal or agent session to complete checkout in the dashboard. You can now activate subscriptions in place for common workflows:

  • Workers Paid: Move beyond Free plan limits such as 100,000 requests per day and 10 ms of CPU time, with 10 million requests and 30 million CPU milliseconds included each month for $5 per month plus usage.
  • R2: Activate an R2 subscription to start creating buckets, with 10 GB of free monthly storage plus usage-based billing beyond the free tier.
  • Zero Trust: Sign up for Zero Trust (with up to 50 users included on the Free plan) to put a Worker behind Cloudflare Access.

To use this from the CLI, update to cf 1.0.0-rc.5 or later and reauthenticate with cf auth login so your session receives the updated OAuth scopes. Your account must also have a verified email address and an existing billing profile with a payment method on file.

In MCP clients that support the MCP 2026-07-28 specification and MCP elicitation ↗︎, Cloudflare displays the plan price and asks for your permission before activating a subscription on your account. Clients that do not support elicitation are directed to the dashboard.

For more information, refer to Usage-based billing and Use cf with coding agents.

Reach overlapping remote networks with DNAT translations on Cloudflare One Appliance

You can now configure DNAT (destination NAT) translations on a Cloudflare One Appliance LAN, in beta. A DNAT translation maps a local pre-NAT prefix to a post-NAT prefix of the same size, which is the real prefix of a remote subnet reachable through Cloudflare WAN, such as a data center connected over an IPsec tunnel. Hosts on the LAN send traffic to the pre-NAT prefix, and the Appliance translates it 1:1 to the remote subnet and back.

Use DNAT translations to reach a remote network that uses the same addresses as your site, without renumbering either side. You can also use them to avoid adding routes for remote subnets to your local network. Combine DNAT translations with static NAT for a subnet when both sides of the connection use the same addresses.

  • In the dashboard, edit a LAN in your Appliance profile's Network configuration, then select Add DNAT translation under DNAT translations.

    Go to Appliances ↗
  • In the API, set the remote_subnets array when you create or update a LAN. Each item has a local_alias_prefix (pre-NAT) and a remote_prefix (post-NAT).

Required API token permissions

At least one of the following token permissions is required:
  • Magic WAN Write
  • Magic Transit Write
Patch Site LANbash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/lans/$LAN_ID" \
	--request PATCH \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"remote_subnets": [
				{
						"local_alias_prefix": "100.64.1.0/24",
						"remote_prefix": "10.1.1.0/24"
				}
		]
	}'

DNAT translations require Appliance OS version 2026.11.2 or later, which deploys automatically.

For details, refer to DNAT translations.

Prioritized traffic now takes effect on congested WAN circuits for Cloudflare One Appliance

Prioritized traffic on Cloudflare One Appliance now takes effect when your WAN circuit is slower than the appliance port, which is common for branch Internet connections. Enter the circuit's upload speed on each WAN, and the appliance shapes upload traffic to 95% of that value. Traffic then queues on the appliance instead of in your modem or ISP network, so the appliance can send prioritized applications, such as voice and video calls, ahead of everything else.

  • Two traffic classes: Applications in the Prioritized traffic list go first. All other traffic is default (best effort). Prioritized traffic cannot completely starve default traffic, and flows within each class share bandwidth fairly.
  • Dashboard: When you create or edit a WAN, enter Provisioned upload bandwidth (Mbps) and, optionally, Provisioned download bandwidth (Mbps). Saved values appear in the WAN details.
  • API: Set provisioned_upload_kbps and provisioned_download_kbps, in kilobits per second, when you create or update a WAN. To remove a value with a PATCH request, set it to null.

Required API token permissions

At least one of the following token permissions is required:
  • Magic WAN Write
  • Magic Transit Write
Patch Site WANbash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/wans/$WAN_ID" \
	--request PATCH \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"provisioned_upload_kbps": 100000,
		"provisioned_download_kbps": 500000
	}'

Both fields are optional. If you do not set the upload value, the appliance does not shape the WAN, which matches how it worked before. The appliance does not currently shape download traffic. Upload shaping requires Appliance version 2026.10.3 or later, which appliances install automatically during their interrupt window.

For details, refer to How traffic prioritization works.

Range requests respect client Accept-Encoding

Cloudflare updated how range requests handle content encoding for both cached files and uncached GET requests over HTTPS.

Cached encoded files

A byte range of a cached file encoded with gzip or Brotli (br) counts bytes of the encoded file, not of the decompressed content (RFC 9110, section 14.1.2 ↗︎). Cloudflare now serves that range only if the client's Accept-Encoding header explicitly lists the encoding without q=0 (and over HTTPS for Brotli). Otherwise, Cloudflare ignores Range (RFC 9110, section 14.2 ↗︎) and sends the complete file as 200 OK using normal content negotiation. Cloudflare always sends the complete 200 OK file for a cached file encoded with Zstandard (zstd) or deflate.

Previously, a client that did not accept the encoding could receive a 206 Partial Content response whose bytes did not match its Content-Range header.

Uncached range requests

If caching is bypassed or the request is not eligible for caching, Cloudflare forwards the client's Range header to your origin. For GET requests over HTTPS, Cloudflare now also forwards the client's own Accept-Encoding header instead of Cloudflare's default gzip, br header. Previously, Cloudflare passed your origin's byte-range 206 Partial Content response to the client without decoding it, so a client could receive a range in an encoding it did not accept.

If a client sends no Accept-Encoding header (on Orange-to-Orange requests), or sends only stripped dictionary encodings (dcb or dcz), your origin can receive an empty Accept-Encoding header. Under RFC 9110, section 12.5.3 ↗︎, an empty Accept-Encoding header means the client accepts no encoding, so your origin should answer it with an unencoded response rather than 406 Not Acceptable.

Range requests that Cloudflare serves from cache, or fetches with Origin Range Requests, still send Cloudflare's own Accept-Encoding header to your origin.

For more information, refer to Range request behavior.

Email Sending is now available on the Workers Free plan

Email Sending is now available on the Workers Free plan for sending to the verified destination addresses in your account.

You can now onboard sending domains, send for free to verified destination addresses during development and testing, and upgrade to the Workers Paid plan when going to production to send to arbitrary addresses. Use the Workers binding, the REST API, or SMTP to send alerts, reports, and notifications to your own team without a paid plan.

Sends to verified destination addresses are free on every plan. They do not count toward the monthly quota or the daily sending limits.

src/index.jsjs
export default {
	async fetch(request, env) {
		try {
			await env.EMAIL.send({
				from: "alerts@yourdomain.com",
				to: "oncall@example.com", // A verified destination address
				subject: "Disk usage above 90%",
				text: "Disk usage on db-1 is above 90%.",
			});
		} catch (error) {
			if (error.code === "E_RECIPIENT_PLAN_RESTRICTED") {
				return new Response("Recipient is not a verified destination address", {
					status: 403,
				});
			}
			throw error;
		}

		return new Response("Alert sent");
	},
};
src/index.tsts
export default {
	async fetch(request, env): Promise<Response> {
		try {
			await env.EMAIL.send({
				from: "alerts@yourdomain.com",
				to: "oncall@example.com", // A verified destination address
				subject: "Disk usage above 90%",
				text: "Disk usage on db-1 is above 90%.",
			});
		} catch (error) {
			if (error.code === "E_RECIPIENT_PLAN_RESTRICTED") {
				return new Response("Recipient is not a verified destination address", {
					status: 403,
				});
			}
			throw error;
		}

		return new Response("Alert sent");
	},
} satisfies ExportedHandler<Env>;

To send to any recipient, upgrade to the Workers Paid plan. Refer to Limits and Pricing for details.

Verified sends now appear in Email Sending

Messages that you send from a sending domain to verified destination addresses now count as Email Sending traffic.

Before, the capability to send to verified destination addresses was an Email Routing feature, and these messages were recorded as Email Routing traffic. This change moves this capability to Email Sending, with support for all Email Sending features:

To find these messages in the GraphQL Analytics API, filter the Email Sending datasets on the new isVerifiedRecipient field. Messages sent from a domain that has only Email Routing configured are unchanged.

Set up two-factor authentication without a password

If you sign in to Cloudflare with Apple, GitHub, or Google, you can now confirm your identity with a code sent to your email when you set up two-factor authentication (2FA). Previously, the dashboard asked for a Cloudflare password, which most social login users never created.

Cloudflare asks you to confirm your identity before changing security settings like 2FA. This protects your account if you leave it signed in on a shared or public computer. That check now offers email verification when you do not have a password, so you no longer need to reset a password you never set just to turn on 2FA.

To set up 2FA, go to Profile > Authentication and select Set up under Two-Factor Authentication.

For more information, refer to Two-factor authentication.

Automatic AVIF conversion with Polish

Polish can now create AVIF versions of JPEG and PNG images served from your origin, alongside its existing WebP conversion. AVIF often produces smaller files than WebP, reducing transfer sizes and improving load times for image-heavy sites such as product catalogs, photo galleries, and news publications.

Polish automatically optimizes images on your zone that are served from your origin server. It strips metadata, applies compression, and can convert JPEG and PNG files to more efficient image formats.

Configure Polish with AVIF through the Cloudflare CLI, dashboard, or REST API:

cf zones settings edit polish --zone example.com --body '{"value":"lossy"}'
cf zones settings edit avif --zone example.com --body '{"value":"on"}'
cf zones settings edit webp --zone example.com --body '{"value":"on"}'

AVIF and WebP can be enabled at the same time. When both formats are enabled, Polish selects an output based on browser support, file size, and image quality:

  • The browser must advertise AVIF support in its Accept header.
  • Polish serves AVIF only if the converted image is smaller than the original.
  • If the browser supports both AVIF and WebP, then Polish prefers AVIF.
  • Browsers without AVIF support continue to receive WebP or the optimized original format.

Refer to Configure Polish and AVIF may be skipped for format selection and fallback behavior.

Updated prompt logging for AI Security for Apps

To log prompt content for AI Security for Apps, configure payload logging and use a WAF custom rule that references a field with the cf.llm.prompt prefix.

When a custom rule matches, payload logging stores the extracted prompt. If no prompt is extracted and analysis falls back to the full request body, payload logging stores the full request body.

This workflow replaces the previous AI Security Log Mode Ruleset procedure. For more information, refer to Log prompts for matching rules.

WAF Emergency Release - 2026-11-24

This release introduces two new detections in the Cloudflare Free Ruleset.

RulesetRule IDLegacy Rule IDDescriptionPrevious ActionNew ActionComments
Cloudflare Free RulesetN/AAnomaly - Embedded Application RequestN/ABlockThis is a new detection.
Cloudflare Free RulesetN/AGeneric Rules - Authentication BypassN/ABlockThis is a new detection.

WAF Release - Scheduled changes for 2026-12-01

Announcement DateRelease DateRelease BehaviorLegacy Rule IDRule IDDescriptionComments
2026-10-122026-12-01LogN/ABroken Access Control - Directory Traversal (Beta)

This rule will be merged into the original rule "Broken Access Control - Directory Traversal" (ID: ).

2026-11-032026-12-01LogN/AGeneric Rules - Dangerous File Upload

This is a new detection.

2026-11-242026-12-01LogN/AMagento - Template Injection - CVE:CVE-2026-103849 ↗︎

This is a new detection.

2026-11-242026-12-01LogN/APHP - Code Injection #3

This is a new detection.

Send feedback from the Cloudflare CLI and MCP

Send bug reports, feature requests, and feedback about where you got stuck directly to Cloudflare.

Sign in with cf auth login or set CLOUDFLARE_API_TOKEN, then use cf feedback with a short note.

cf feedback "The deploy output did not identify the selected environment"

Coding agents connected to the Cloudflare API Model Context Protocol (MCP) server can use the submit_feedback tool. The tool requires a message, type, and impact. It accepts optional details such as the task and the expected and actual results. Both options return a submission ID you can share.

For examples and the diagnostic details included in CLI reports, refer to Agent feedback.

DNS settings endpoints remove deprecated Foundation DNS boolean

Starting today, the DNS settings endpoints no longer return or accept the deprecated foundation_dns boolean for zone settings or account defaults. The rollout is expected to take seven days. Use nameservers.type: "cloudflare.advanced" to configure Advanced Nameservers.

Update clients that still read or write foundation_dns. Remove handling for the boolean and use the nameserver type instead. The zone settings JSON for /zones/{zone_id}/dns_settings is:

{
  "nameservers": {
    "type": "cloudflare.advanced"
  }
}

Cloudflare will make an equivalent change to /accounts/{account_id}/dns_settings at the same time.

PATCH requests that include foundation_dns will be rejected.

This API update does not change your Foundation DNS subscription or whether Advanced Nameservers are enabled on your zones. It does not require a zone migration.

Expanded support for EXIF, XMP, and IPTC-IIM metadata in Images

In Images, the metadata parameter now supports Extensible Metadata Platform (XMP) metadata preservation and expands Exchangeable Image File Format (EXIF) metadata preservation to additional image formats. It can also preserve selected legacy Information Interchange Model (IPTC-IIM) metadata from JPEG sources, mapping it to XMP when converting to compatible formats.

This release does not change existing Content Credentials support, which can provide tamper-evident provenance and disclose how AI contributed to an image.

What changed

Previously, Images preserved EXIF metadata only for JPEG-to-JPEG optimizations, and did not preserve XMP or IPTC-IIM metadata. You can now keep EXIF and XMP metadata when both the source and output formats support the corresponding metadata type. For JPEG sources, you can also retain selected legacy IPTC-IIM attribution and rights metadata.

EXIF, XMP, and IPTC-IIM carry complementary information about an image. For example, publishers can retain copyright and attribution, and photographers can display capture settings alongside images on portfolio sites. E-commerce and digital asset management workflows can carry product details, captions, and internal asset information into optimized images without reattaching that information.

EXIF, XMP, and IPTC-IIM support varies by source and output format:

Format Read from source Write to output
JPEG EXIF, XMP, and IPTC-IIM EXIF, XMP, and IPTC-IIM
PNG EXIF and XMP EXIF and XMP
WebP EXIF and XMP EXIF and XMP
AVIF EXIF and XMP EXIF
HEIC EXIF and XMP Not an output format
GIF Not supported XMP
TIFF Not supported Not an output format

For example, you can convert a high-resolution JPEG to WebP while keeping both EXIF and XMP metadata.

With metadata=keep, JPEG outputs retain the original IPTC-IIM metadata. For PNG, WebP, and GIF outputs, Images maps supported IPTC-IIM fields to XMP. If the source already contains XMP, Images preserves that XMP without merging the IPTC-IIM fields.

How it works

Use metadata to control how Images handles supported metadata in re-encoded outputs. The default remains copyright, so existing requests may now preserve an EXIF copyright tag in PNG, WebP, or AVIF outputs when the source contains one.

The following URL transformation converts a JPEG source to WebP and requests metadata preservation:

https://example.com/cdn-cgi/image/format=webp,metadata=keep/source.jpg

Use the same setting in a Worker fetch() subrequest:

export default {
	async fetch() {
		return fetch("https://example.com/source.jpg", {
			cf: {
				image: {
					format: "webp",
					metadata: "keep",
				},
			},
		});
	},
};
export default {
	async fetch() {
		return fetch("https://example.com/source.jpg", {
			cf: {
				image: {
					format: "webp",
					metadata: "keep",
				},
			},
		});
	},
};

Refer to the metadata parameter.

K2 metrics in the dashboard and GraphQL Analytics API

You can now monitor your K2 streams in the Cloudflare dashboard: how fast records are produced and consumed, how much each stream stores, and how far behind each subscription is.

A K2 stream's Metrics tab, charting bytes produced by input and bytes stored

In the Cloudflare dashboard, go to the K2 Streams page and select a stream.

Go to K2 Streams ↗

Metrics appear in three places:

  • Overview — Produce and consume rates over the last 5 minutes, stored bytes, and each subscription's records behind, oldest unread record, lag over the last hour, and bytes consumed.
  • Metrics — Charts of bytes produced by input, bytes stored, and bytes delivered to each subscription, over a time range you choose.
  • Subscription page — Select a subscription to see its records and bytes behind, its oldest unread record, its consume rate, and charts of its lag and throughput.

The same metrics are available in the GraphQL Analytics API, in four beta datasets:

  • k2ProduceAdaptiveGroups — Bytes produced to a stream, by input (http or binding).
  • k2ConsumeAdaptiveGroups — Bytes delivered to each subscription.
  • k2StorageAdaptiveGroups — Bytes a stream stores, measured about every ten minutes.
  • k2SubscriptionLagAdaptiveGroups — Records a subscription has not committed, and the age of the oldest one in milliseconds.

This query reads a stream's bytes produced by input in 5-minute buckets, and a subscription's current lag. To get a subscription's full lag, set the lag query's time range to cover the stream's whole retention period (7 days in this example). A shorter range leaves out older records the subscription has not committed. Replace <ACCOUNT_ID>, <STREAM_ID>, and <SUBSCRIPTION_ID> with your own values.

Bytes produced by input, and a subscription's laggraphql
query K2StreamMetrics {
	viewer {
		accounts(filter: { accountTag: "<ACCOUNT_ID>" }) {
			produced: k2ProduceAdaptiveGroups(
				limit: 100
				filter: {
					streamId: "<STREAM_ID>"
					datetime_geq: "2026-11-23T11:00:00Z"
					datetime_lt: "2026-11-23T12:00:00Z"
				}
				orderBy: [datetimeFiveMinutes_ASC]
			) {
				dimensions {
					input
					datetimeFiveMinutes
				}
				sum {
					bytes
				}
			}
			lag: k2SubscriptionLagAdaptiveGroups(
				limit: 1
				filter: {
					streamId: "<STREAM_ID>"
					datetime_geq: "2026-11-16T12:00:00Z"
					datetime_leq: "2026-11-23T12:00:00Z"
				}
			) {
				max(subscriptionId: "<SUBSCRIPTION_ID>") {
					records
					timeMs
				}
			}
		}
	}
}

Grant access to Workers in specific dispatch namespaces

You can now grant members, User Groups, and API tokens access to the Workers in specific dispatch namespaces. Previously, managing Workers in a namespace required account-wide Workers access. Now you can create a token that deploys Workers to one namespace without giving it access to Workers in other namespaces or elsewhere in your account.

Choose from four roles to control the level of access:

  • Workers Namespace Metadata Read-Only: View Workers, settings, and bindings in the namespace. Excludes script code and secrets.
  • Workers Namespace Content Read-Only: Everything in Metadata Read-Only, plus script code and secret names.
  • Workers Namespace Editor: Create, update, deploy, and delete Workers in the namespace, including their code, settings, and secrets. Cannot view, update, or delete the namespace itself.
  • Workers Namespace Admin: Everything in Editor, plus the ability to view, update, and delete the namespace itself.
Permission policy form showing four Workers Namespace roles scoped to an individual namespace

A namespace role applies to every current and future Worker in the selected namespaces, and only to those Workers. Unlike the Workers Editor role, Workers Namespace Editor can create and delete Workers, so use it for teammates who deploy Workers and for CI/CD tokens. For example, scope your staging pipeline's token to the staging namespace so it cannot deploy to production.

Namespace roles are available today for all Workers for Platforms customers. You can configure them in the Cloudflare dashboard or through the API.

Grant access to members and User Groups

In the Cloudflare dashboard, go to the Members page and select a member. Add a permission policy, set the scope to Individual Namespaces, then select the namespaces and a Workers Namespace role.

Go to Members ↗

To give several people the same access, assign the policy to a User Group instead of each member individually.

Create a scoped API token

Go to the Account API Tokens page and create an account-owned API token. Set the scope to Specified Namespaces.

Go to Account API tokens ↗ Account API token scope picker with Specified Namespaces selected

Then select the namespaces the token can access and choose a Workers Namespace role.

Account API token policy with Workers Namespace Metadata Read-Only access scoped to a specific namespace

For more information, refer to Workers for Platforms roles and permissions.

CPU and heap profiling for Worker Previews

You can now profile Worker Previews, following the launch of on-demand CPU and memory profiling ↗︎ for Workers and Durable Objects. This lets you see what a pull request costs in CPU and memory before you merge it.

Send traffic to a Preview, capture a CPU or heap profile from one of its deployments, and see which functions in your branch use the most CPU time or memory. Push a fix, profile the next deployment, and compare. Production stays untouched the whole time.

Flamegraph of a Preview CPU profile showing scoreProduct, tokenize, formatPrice, and buildProduct under handleSearch

In this Preview, formatPrice takes almost a third of the CPU time because it creates a new Intl.NumberFormat for every product. A slowdown like this is easy to miss in code review, but it stands out in a flamegraph.

Let your agent optimize performance

Previews give coding agents a safe place to iterate on performance. An agent can deploy a Preview, send it load, capture a profile, rewrite the hottest function, and deploy again, until CPU time stops dropping. Each Preview deployment has its own ID, so every profile maps to an exact version of the code.

Capture a profile with the Cloudflare CLI:

cf previews deployments profile latest \
  --worker my-worker \
  --preview my-preview \
  --duration-ms 5000 \
  --profile-type cpu > preview-cpu.pprof

Or with the API. Use latest to target the newest deployment of the Preview:

curl --request POST \
  "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/workers/$WORKER_ID/previews/$PREVIEW_ID/deployments/latest/profile" \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"duration_ms": 5000, "profile_type": "cpu"}' \
  --output preview-cpu.pprof.gz

Profile in the dashboard

Open your Preview, select Observability, and switch the view to Flamegraph. Choose a profile type and a Preview deployment, then select Capture profile. Explore the result as a flamegraph or table, or download the raw pprof file.

Profile Durable Objects on a Preview

Every Preview gets its own Durable Object namespaces. To see what one object is doing on your branch, profile it by ID, just like in production.

To get started, refer to Profile a Preview.

Agents SDK now supports Pi 1.6 with tools that wait without keeping your agent awake

Agents SDK v0.34.0 upgrades PiHarness to Pi 1.6 ↗︎. A Pi tool can now wait for a person, a deadline, or another session without keeping the Durable Object awake, and a session can start from a history that your application already has.

Tools that wait

  • Park until a signal or a deadline. A tool can return a "tool park" (Pi's ToolPark type) instead of a result. The tool park registers what the call waits for, and Pi runs it again when a signal arrives or the deadline passes. While it waits, the call holds no invocation, so the Durable Object can hibernate. Deliver signals with the new harness.signal(). Refer to Tools that wait.
  • Wait for a subagent. submit() and continue() take notify, so a parked tool wakes when another session's input settles. Refer to Wait for a subagent.
  • Approval gates. A beforeTool hook can park a tool call before it runs, for example until a person approves it.

Session updates

  • Start a session from an existing history. harness.root(), sessions.create(), and sessions.fork() take Pi's init, which writes messages into the transcript in the commit that creates the session. The root session is now created on its first use, so harness.root() can seed it. Refer to Seed a session with an existing history.
  • Keep queued input across an abort. With submit(input, { onAbort: "keep" }), stopping an answer does not drop the message that the user or another agent sent next.
  • Steadier runs. Pi retries more dropped provider connections. When Anthropic can no longer continue a message thread, agents/models/pi-ai sends the whole conversation again instead of failing the turn. PiHarness.dispose() frees Pi AI's per-session state.

Wait for a person's answer

This tool asks the user a question, then parks until your agent delivers the answer. Each time it runs, it checks for the answer first, so the question is shown once:

A sequence diagram of a tool that asks the user a question. The model calls the tool, and run 1 of execute() starts. readSignal() finds no answer, so the tool shows the question with its task id and returns a tool park naming the signal key it waits for. Run 1 ends there. Pi stores the tool park: the call's task id and the signal key. Between the runs the object can hibernate, with no tool code in memory and only the stored tool park kept. Later your app calls harness.signal() with the task id and the answer. Pi matches the stored tool park and starts run 2 of execute() with the same arguments. This time readSignal() returns the answer, and the tool returns it to the model as its result.
import { defineSignal } from "@earendil-works/pi-durable";
import { obj, str } from "@earendil-works/pi-schema";

const Answer = defineSignal({
	name: "app.answer",
	version: 1,
	schema: obj({ text: str() }),
});

const AskParameters = obj({ question: str() });

const askUser = {
	name: "ask_user",
	description: "Ask the user a question and wait for the answer.",
	parameters: AskParameters,
	async execute({ question }, api, context) {
		const answer = await api.readSignal(Answer, "answer", context);
		if (answer !== undefined && "value" in answer) {
			return { output: [{ type: "text", text: answer.value.text }] };
		}
		await showQuestion(api.taskId, question);
		return { sleep: { signals: [Answer.key("answer")] } };
	},
};

// Later, in your agent, when the user answers:
await this.harness.signal(taskId, Answer, "answer", { text: "Yes" });
import {
	defineSignal,
	type ToolRegistration,
} from "@earendil-works/pi-durable";
import { obj, str } from "@earendil-works/pi-schema";

const Answer = defineSignal({
	name: "app.answer",
	version: 1,
	schema: obj({ text: str() }),
});

const AskParameters = obj({ question: str() });

const askUser: ToolRegistration<typeof AskParameters> = {
	name: "ask_user",
	description: "Ask the user a question and wait for the answer.",
	parameters: AskParameters,
	async execute({ question }, api, context) {
		const answer = await api.readSignal(Answer, "answer", context);
		if (answer !== undefined && "value" in answer) {
			return { output: [{ type: "text", text: answer.value.text }] };
		}
		await showQuestion(api.taskId, question);
		return { sleep: { signals: [Answer.key("answer")] } };
	},
};

// Later, in your agent, when the user answers:
await this.harness.signal(taskId, Answer, "answer", { text: "Yes" });

While the question is open, the session's run is still going, and the object can hibernate or be evicted. harness.signal() wakes the object, and Pi runs the tool again with the answer.

Other changes

  • MCP re-authorization. A request that needs the user to sign in again throws MCPAuthorizationRequiredError with a link. A failed server stays failed until you call the new reconnectMcpServer(id). Refer to Failures and reconnecting.
  • Failed requests no longer send error details. A failed request gets a generic 500 response, and a failed WebSocket upgrade closes with code 1011. Use onFetchError() to choose the response. Refer to Failed requests.
  • Chat fixes. Stop, clear, regenerate, and resume now work across tabs and during recovery.
  • Scheduling fixes. A schedule, queue item, or Task run that is cancelled or replaced no longer runs again.
  • Models. ai.image() and Pi AI's ai.images() run the FLUX.2 image models. claudeCode() defaults to claude-sonnet-5-5. Examples move off the Workers AI models retired on November 20, 2026.

Upgrade

Once a conversation runs on Pi 1.6, Pi 1.5 cannot run its tool calls or model requests. After upgrading, roll forward to fix deployment issues rather than rolling back to Pi 1.5.

Deliver signals with harness.signal() instead of (await harness.pi()).signal(), and call harness.root() before you reach the root session through harness.pi(). If you use Pi Durable directly, RunEndTask is now HookTask, and code mode namespaces come from Extension.namespace. Refer to the Pi Durable 1.6.0 changelog ↗︎ for the full list of breaking changes.

If you use the MCP client, catch MCPAuthorizationRequiredError and send the user to error.authUrl, and give users a way to call reconnectMcpServer(id) for a failed server. If you relied on error details in failed responses, implement onFetchError().

The Agents SDK v0.34.0 changelog ↗︎ has step-by-step upgrade instructions. Point your coding agent at them and upgrade today:

Run custom scripts in Browser Run with /script

Browser Run now runs custom browser automation written with Playwright, Puppeteer, or the raw Chrome DevTools Protocol (CDP) in a single API request, with the new /script endpoints. Submit a JavaScript function, and Browser Run executes it in an isolated Worker connected to a browser session, so you do not need to deploy a Worker.

curl -i -X POST "https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/script" \
  -H "Authorization: Bearer <apiToken>" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "async ({ page }) => { await page.goto(\"https://example.com\"); return { title: await page.title() }; }",
    "library": "playwright"
  }'
HTTP/2 200
content-type: application/json
cf-browser-session-id: 8f7c2e3a-1b4d-4c6e-9a0f-2d5b7e9c1a3f
cf-browser-target-id: A1B2C3D4E5F60718293A4B5C6D7E8F90

{
  "success": true,
  "result": {
    "title": "Example Domain"
  }
}
  • POST /script acquires a browser, runs your function, and returns its result as { "success": true, "result": ... }. The session and page are returned in the cf-browser-session-id and cf-browser-target-id response headers (except Kitesurf runs).
  • POST /script/<sessionId> runs follow-up scripts in a session you already hold, from /script or from POST /devtools/browser. Pass targetId to attach to a specific page, or create extra pages to run scripts concurrently in one session.
  • Session launch options (keep_alive, recording, lab) go in the /script query string. Use browser=kitesurf to run a CDP script on Kitesurf.
  • From a Worker, call the same endpoints through the browser binding with env.BROWSER.script(), without an API token.
  • From the Cloudflare dashboard, write and run scripts against a live browser in Script Studio, without an API token.
  • Neither endpoint closes the session after your script runs. Close it with DELETE /devtools/browser/<sessionId> or browser.close(). Otherwise, it ends at its idle timeout.

For more information, refer to Custom scripts.

Delivery analytics for hosted images

Cloudflare Images lets you store, optimize, and deliver hosted images through a scalable image pipeline. The new Images Analytics dashboard ↗︎ provides up to 30 days of delivery data for assets stored in Images, helping you understand how and where they are requested.

Hosted images analytics showing request totals, countries, and response status codes

In Images & Stream > Hosted images > Analytics, you can:

  • Investigate traffic trends and sources. Review request volume over time, then filter by country, autonomous system number (ASN), or referrer to trace spikes and unexpected traffic.
  • Troubleshoot delivery. Break down requests by response status code to identify errors. Filter by browser or operating system to understand which output formats different clients receive.
  • Understand asset and variant usage. Find the most-requested source images and compare predefined variants with inline configurations to see which configurations account for the most requests.

Use cf sql query to query delivery data from the terminal. The SQL API exposes this data in the events.imagesHostedRequests dataset:

cf sql query \
  'SELECT httpStatus, COUNT(*) AS requests
   FROM events.imagesHostedRequests
   GROUP BY httpStatus
   ORDER BY requests DESC
   LIMIT 20' \
  --scope-account "<ACCOUNT_TAG>" \
  --time-since "<START_TIME>"

The SQL API also exposes transformation data, such as binding requests, from the events.imagesTransformations dataset:

cf sql query \
  'SELECT isBindingRequest, scriptName, originHost, COUNT(*) AS transformations
   FROM events.imagesTransformations
   GROUP BY isBindingRequest, scriptName, originHost
   ORDER BY transformations DESC
   LIMIT 5' \
  --scope-account "<ACCOUNT_TAG>" \
  --time-since "<START_TIME>"

Open the Images Analytics dashboard ↗︎ or use the Cloudflare CLI to investigate recent traffic changes and identify the hosted images and variants driving requests.

CVE pages in Zero Wire

Cloudflare Radar Zero Wire ↗︎ now has a page for every published CVE. Each page brings together what you need to decide how urgently to act on a vulnerability: how severe it is, whether it is being exploited, what it affects, and how to fix it.

Animation searching the CVE list for log4j, filtering to Critical severity, sorting by highest score, and opening the Log4Shell CVE page, then scrolling through all of its sections, from exploitation to references

Browse CVEs

The CVE list ↗︎ includes every published CVE. Sort them by date or CVSS score, search by CVE ID or keyword, such as a product or vendor name, and filter by severity and year. Each row shows the CVE's score and highlights CVEs in the CISA Known Exploited Vulnerabilities (KEV) catalog and those with a fix available.

CVE pages

Each CVE page, such as CVE-2021-44228 (Log4Shell) ↗︎, starts with its CVSS score, description, and key dates, followed by:

  • Exploitation: whether the CVE is in the CISA KEV catalog, including known ransomware use, the CISA SSVC assessment, and the FIRST EPSS probability of exploitation.
  • Affected products: the affected vendors, products, and versions, as listed by the organization that published the CVE and by NVD.
  • Recommended actions: how to fix the vulnerability, or reduce the risk until you can, including CISA's guidance for known exploited CVEs.
  • Severity: every CVSS score for the CVE, with each metric explained.
  • Weaknesses and attack patterns: the related CWE weaknesses and CAPEC attack patterns.
  • References: advisories, patches, and other sources.

CVEs cited in Zero Wire briefings ↗︎ link to their CVE pages, and each CVE page links back to the briefings that cite it.

Search and follow

Search for a CVE ID or keyword from anywhere on Radar, using the search bar or Cmd+K (Ctrl+K on Windows and Linux), to jump straight to a CVE page.

Radar search showing CVE results for log4j

To follow new CVEs, subscribe to the RSS ↗︎, Atom ↗︎, or JSON ↗︎ feed. Each feed can be filtered by severity, such as the feed of Critical CVEs ↗︎.

Explore the CVE list ↗︎ on Cloudflare Radar.

WAF Emergency Release - 2026-11-20

This release introduces new Ruby and WordPress security advisory mapped rules. Supplementary information around the security advisories covered are available through Zero Wire ruby2shell: heap overflow in Ruby string case conversion ↗︎ and WordPress 7.1.5: Template Part flaw can turn an administrator's click into code execution ↗︎.

RulesetRule IDLegacy Rule IDDescriptionPrevious ActionNew ActionComments
Cloudflare Free RulesetN/ARuby - Regexp Character Class Intersection - GHSA-7x2q-68qv-6p8xN/ABlockThis is a new detection.
Cloudflare Free RulesetN/ARuby - Regexp Compiled Program Size - GHSA-3p8q-wmhx-vm2wN/ABlockThis is a new detection.
Cloudflare Managed RulesetN/ARuby - Regexp Character Class Intersection - GHSA-7x2q-68qv-6p8xN/ABlockThis is a new detection.
Cloudflare Managed RulesetN/ARuby - Regexp Compiled Program Size - GHSA-3p8q-wmhx-vm2wN/ABlockThis is a new detection.
Cloudflare Managed RulesetN/AWordPress - DoS - GHSA-56j2-5mp6-wr3xN/ABlockThis is a new detection.
Cloudflare Managed RulesetN/AWordPress - Broken Access Control - GHSA-pmp8-6cv8-q323N/ABlockThis is a new detection.
Cloudflare Managed RulesetN/AWordPress - Stored XSS - GHSA-cr2m-2j4r-3v3xN/ABlockThis is a new detection.

Dispatch namespaces can no longer be renamed

You can no longer rename a dispatch namespace after creating it.

Renaming a namespace could cause API requests to read, deploy, or delete Workers to fail because dispatch Workers and outbound Workers retained the namespace name they were deployed with. This change prevents those failures by rejecting rename requests.

What changes:

  • PUT and PATCH requests to the dispatch namespace API return a 400 error with code 100413 if they change name:

    Dispatch namespaces cannot be renamed. The name in the request must match the namespace's current name. To use a different name, create a new dispatch namespace.
  • wrangler dispatch-namespace rename returns the same 100413 error.

  • Terraform applies that attempt to change name on a cloudflare_workers_for_platforms_dispatch_namespace resource fail.

To move your Workers to a namespace with a different name:

  1. Create a new dispatch namespace with the name you want.
  2. Deploy your user Workers to the new namespace.
  3. Update the dispatch namespace binding in your dispatch Worker to reference the new namespace, then redeploy the dispatch Worker.
  4. Verify that requests are routed to the new namespace and your Workers work as expected.
  5. Delete the user Workers in the old namespace, then delete the old namespace.

For more information, refer to How Workers for Platforms works.

Capture PDFs, links, scraped elements, and extracted JSON with /snapshot

Browser Run's /snapshot endpoint can now return four more formats from a single page load: pdf, links, scrape, and json. Before, /snapshot returned HTML, screenshots, Markdown, and the accessibility tree, so a workflow that also needed a PDF or structured data had to prepare the same page again in a second request.

Use the new formats when you need to:

  • PDF: print the page, with the same pdfOptions as the /pdf endpoint.
  • Links: collect the links on the page, with the same visibleLinksOnly and excludeExternalLinks options as /links.
  • Scraped elements: return the elements matched by elements, the same payload as /scrape. elements is required when you request it.
  • Extracted JSON: extract structured data from the page HTML with Workers AI, with the same prompt, response_format, and custom_ai fields as /json. prompt or response_format is required, and the request incurs Workers AI usage.

Request them through formats, the same way as the existing formats. This example returns a PDF, the page links, and the text of each paragraph:

const response = await env.BROWSER.quickAction("snapshot", {
	url: "https://example.com/",
	formats: ["pdf", "links", "scrape"],
	elements: [{ selector: "p" }],
});

const { result } = await response.json();
console.log(result.pdf);
console.log(result.links);
const response = await env.BROWSER.quickAction("snapshot", {
	url: "https://example.com/",
	formats: ["pdf", "links", "scrape"],
	elements: [{ selector: "p" }],
});

const { result } = await response.json();
console.log(result.pdf);
console.log(result.links);

Formats are captured in a fixed order rather than the order of the formats array, and the PDF is printed last because print handlers can change the page. A live page can change between captures, and any format that fails fails the whole request. For JSON snapshots, one actionTimeout budget (default 60 seconds, maximum 120 seconds) covers navigation, captures, retries, and the AI request.

You still need to request at least two distinct formats. If you only need one, use the corresponding single-format endpoint.

Refer to the /snapshot documentation for the full list of accepted values and options.

Improved Durable Object Reliability During Runtime Updates

Cloudflare has improved how Durable Object storage handles machines restarting during runtime updates.

Each write to a Durable Object's storage must be confirmed by a majority within a group of machines for durability. Machines now proactively remove themselves from the group when restarting, so that they can be replaced before the restart happens.

Previously, this could take up to a few minutes. During that time, a write could fail to reach a majority, and the object was reset with Internal error in Durable Object storage caused object to be reset, disconnecting its WebSockets.

This can make these resets less frequent for SQLite-backed Durable Objects, especially ones that write to storage only occasionally, such as those using WebSocket hibernation. Actual results depend on your workload and traffic patterns.

The change is live in all regions. No action is needed by customers to see benefits from this change. Some disconnects during runtime updates are still expected, so clients should continue to reconnect when a WebSocket closes.

To learn more, refer to Use WebSockets.