# Prometheus v3.13.6

2026-12-03 · [Original release notes](https://github.com/prometheus/prometheus/releases/tag/v3.13.6) · [Full summary](https://ratatosk.io/en/releases/prometheus/v3.13.6)

Security 1 · Important fixes 7 · Dependency updates 5

## Security (1)

### Unsafe `/graph` compatibility redirects fixed

- Affects: new UI with the `/graph` compatibility redirect enabled

A request with path-like `..` segments in its query could redirect to an unintended target or escape `--web.route-prefix`; legitimate query values containing `..` or `//` could also be mangled. The redirect now cleans only the path and preserves the raw query byte for byte.

> - [SECURITY] UI: Fix open redirect in the `/graph` compatibility redirect, where `..` segments in the query string were resolved into the redirect target. #20055

## Important fixes (7)

### TSDB checkpoint loss of WBL series references fixed

- Affects: out-of-order samples with WBL/WAL replay

If an in-order head compaction checkpointed the WAL before out-of-order compaction wrote the WBL to a block and the process stopped in that window, the next replay skipped the only copy of already-acknowledged samples.

> - [BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs. #19737

### TSDB chunk numbering stays monotonic across truncation

- Affects: low-volume TSDB servers with out-of-order samples

After a restart, truncation before another chunk was written could reset the sequence; new out-of-order references then fell below query bookmarks and were ignored, and head GC dropped the samples. The mapper now names files from the sequence in chunk references instead of resetting `evtlPos.seq` when truncation deletes all files.

> - [BUGFIX] TSDB: Keep head chunk file numbering monotonic across truncation, so out-of-order samples are not lost after a restart on a low-volume server. #20149

### TSDB WAL replay mapped-chunk overwrite fixed

- Affects: TSDB WAL replay with multiple references per series and mapped chunks

When replay processed another reference for a series with chunks mapped through an earlier reference, it could overwrite those chunks, causing reconstructed out-of-order samples to be discarded and in-order chunks to be lost from queries after WAL repair. Replay now preserves and merges and deduplicates mapped chunks, preventing the documented missing out-of-order samples and duplicate in-order chunks after restart.

> - [BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart. #19805

### [Silent failure] TSDB head-chunk seeks now respect the query stop point

- Affects: TSDB queries that seek within head chunks

When samples were committed after the querier was created, a seek within a head chunk could pass the iterator's stop point and return those newer samples through `Seek` and subsequent `Next` calls. Such seeks now respect the stop point; the common path is unaffected.

> - [BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started. #19854

### Remote-write config state preserved after failed reloads

- Affects: remote-write configurations

Previously, a failed reload—for example, from duplicate configs or a missing TLS CA file—left unchanged queues unmanaged and stored the new external labels; a later successful reload could panic while registering duplicate queue metrics and leave queues sending stale labels. Now, failed config application keeps the previous queues and external labels intact, so a later successful reload can update the queues without registering a second queue or retaining stale labels.

> - [BUGFIX] Remote write: Fix a panic on config reload after an earlier reload failed. #20106

### Compressed response truncation fixed in CompressionHandler

- Affects: HTTP responses handled by CompressionHandler whose wrapped handler sets `Content-Length`

When a wrapped handler set the uncompressed length, gzip and deflate responses could be truncated. Compressed responses now drop that handler-set `Content-Length`, while uncompressed responses retain their content length.

> - [BUGFIX] HTTP: Avoid truncating compressed responses when handlers set Content-Length. #19661

### PromQL regex matcher false positives fixed

- Affects: PromQL regex matchers with a capturing group directly adjacent to a literal

Before this fix, `.*\|(foo)\|.*` could incorrectly match `|foo-bar|` by finding `|`, `foo` and `|` in sequence despite the intervening text. After the upgrade, these patterns follow Go standard-library RE2 behavior: `|foo-bar|` does not match, while `|foo|` does.

> - [BUGFIX] PromQL: Fix regex matchers returning false-positive matches when a capturing group is directly adjacent to a literal, e.g. `.*\|(foo)\|.*`. #19516

## Dependency updates (5)

### Prometheus built with Go 1.26.11

- [GO-2026-6859](https://osv.dev/vulnerability/GO-2026-6859)

> - [SECURITY] Build with Go 1.26.11 to fix a vulnerability in `net/http` (GO-2026-6859).

### `golang.org/x/net` updated to v0.62.0

- [GO-2026-6860](https://osv.dev/vulnerability/GO-2026-6860), [GO-2026-6866](https://osv.dev/vulnerability/GO-2026-6866)

The update fixes HTML parsing vulnerabilities that could cause quadratic work on certain inputs or mishandle namespaces when rendering raw text.

> - [SECURITY] Bump golang.org/x/net to v0.62.0 to fix HTML parsing vulnerabilities (GO-2026-6860, GO-2026-6866).

### OpenTelemetry updated to v1.47.0

- [GO-2026-6974](https://osv.dev/vulnerability/GO-2026-6974), [GO-2026-6975](https://osv.dev/vulnerability/GO-2026-6975)

Before the update, U+FFFD runes could bypass `AttributeValueLengthLimit`, and W3C baggage parsing could amplify memory allocation. OpenTelemetry v1.47.0 fixes both issues.

> - [SECURITY] Bump OpenTelemetry to v1.47.0 to fix an AttributeValueLengthLimit bypass and W3C baggage parsing memory amplification (GO-2026-6974, GO-2026-6975).

### Updated `github.com/klauspost/compress` to v1.20.2

- [GO-2026-6865](https://osv.dev/vulnerability/GO-2026-6865)

The previous version could panic when processing two-block frames; this update fixes that.

> - [SECURITY] Bump github.com/klauspost/compress to v1.20.2 to fix a panic on two-block frames (GO-2026-6865).

### `google.golang.org/grpc` xDS routing server panic fixed

- [GO-2026-6443](https://osv.dev/vulnerability/GO-2026-6443)

Requests missing both `:authority` and `Host` headers could trigger a server panic during xDS routing. The updated gRPC dependency fixes this panic.

> - [SECURITY] Bump google.golang.org/grpc to v1.83.2 to fix a server panic on missing authority or Host headers (GO-2026-6443).

---

Summaries are produced by AI, so they can be wrong, and they are provided without warranty.
