---
title: "@tanstack/history 1.162.5: release notes, upgrades and advisories"
description: "@tanstack/history 1.162.5: release notes, breaking changes by major version and 2 known advisories with their fix."
url: https://inlinr.com/packages/@tanstack/history
lang: en
---

[Packages](https://inlinr.com/packages)

# @tanstack/history

1.162.5 · 10 Oct 2026 MIT 29.4M / week [Repository](https://github.com/TanStack/router) [Homepage](https://tanstack.com/router) [npm](https://www.npmjs.com/package/@tanstack/history) [Atom feed](https://inlinr.com/packages/feed/@tanstack/history)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/@tanstack/history/upgrade)

LineNewestSecurity

- 1.x 1.162.5 Safe from 1.162.0 Latest line

## Latest releases

[All 151 releases](https://inlinr.com/packages/@tanstack/history/releases)

1. ### [1.162.5](https://inlinr.com/packages/@tanstack/history/releases/1.162.5 "Open this release") [](https://github.com/TanStack/router/releases/tag/%40tanstack/history%401.162.5 "Read this release where it was published")  
10 Oct 2026

  - Removed  
  Drop a duplicated current-location flag and a redundant `createHref` wrapper.
  - Avoid temporary arrays when reading hash-history locations.
  - Keep a leading query or fragment out of the parsed pathname, so hash-history URLs like `/#?x=1` no longer repeat the query in the router location.
2. ### [1.162.4](https://inlinr.com/packages/@tanstack/history/releases/1.162.4 "Open this release") [](https://github.com/TanStack/router/releases/tag/%40tanstack/history%401.162.4 "Read this release where it was published")  
13 Sep 2026

  - Normalize memory history hrefs consistently with browser and server history, including protocol-relative paths and control characters.
  - Avoid temporary arrays when replacing forward memory-history entries.
  - Avoid generating unused history keys for locations with existing state.
3. ### [1.162.3](https://inlinr.com/packages/@tanstack/history/releases/1.162.3 "Open this release") [](https://github.com/TanStack/router/releases/tag/%40tanstack/history%401.162.3 "Read this release where it was published")  
9 Sep 2026

  - Validate navigation and redirect destinations, keep ambiguous relative URLs on the current origin, and constrain prerender requests and output paths. Prevent redirect headers from appearing in serialized server function response bodies.  
  Preserve native form HTTP redirects, route error handling and masks for document redirects, and per-navigation destinations for shared loader redirects. Avoid redundant origin parsing and reduce link styling and server-rendering work. Configured origins must already be normalized.  
  Keep blocked-link inactive props consistent during React hydration, honor explicit redirect Location headers before checking route options, and refresh Vue link state when destinations become internal. Reuse the protocol-relative URL check while parsing redirect schemes once.  
  Reduce React link bundle size by sharing pathname comparisons, state-prop selection, and element creation.  
  Share normalized pathname comparisons in Solid and Vue links to reduce bundle size.
  - Use full-document navigation when an output rewrite produces a cross-origin destination, including the public URL of a route mask.  
  Respect registered history blockers during document navigation, passing history locations and the requested push or replace action.

Dependency tracking

## Know when your own dependencies move

@tanstack/history had 2 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[Details](https://inlinr.com/packages/@tanstack/history/security)

- [Malware in @tanstack/\* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys](https://inlinr.com/advisories/GHSA-g7cv-rxg3-hmpx) Critical · fixed in 1.162.0
- [Malicious code in @tanstack/history (npm)](https://inlinr.com/advisories/MAL-2026-3463) Advisory · fixed in 1.162.0

## Health

[Details](https://inlinr.com/packages/@tanstack/history/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

## Same family

- [@tanstack/query-core 100.2M/wk](https://inlinr.com/packages/@tanstack/query-core)
- [@tanstack/react-query 91.3M/wk](https://inlinr.com/packages/@tanstack/react-query)
- [@tanstack/virtual-core 56.2M/wk](https://inlinr.com/packages/@tanstack/virtual-core)
- [@tanstack/react-virtual 47.1M/wk](https://inlinr.com/packages/@tanstack/react-virtual)
- [@tanstack/store 45.1M/wk](https://inlinr.com/packages/@tanstack/store)
- [@tanstack/react-store 42.3M/wk](https://inlinr.com/packages/@tanstack/react-store)
- [@tanstack/table-core 41.2M/wk](https://inlinr.com/packages/@tanstack/table-core)
- [@tanstack/react-table 38.5M/wk](https://inlinr.com/packages/@tanstack/react-table)

Registry facts last checked 24 Nov 2026\. Releases and advisories last read 24 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
