Scrapfly documents that Chromium 148 removed V8's portable transcendental math implementation in favor of calling directly into the host libm (MSVCRT, glibc, Accelerate), producing five distinct bit-patterns for Math.tanh(0.5) across Windows 10, Windows 11, macOS, Ubuntu, and Android. They frame this as a silent regression that reintroduces a fingerprinting vector the industry had spent five years closing, with no permission prompt or API change to signal the leak.
Scrapfly explicitly notes the root cause 'isn't a bug — it's a deliberate simplification,' with Chromium engineers choosing to drop the maintenance burden of a portable math library in favor of the host's native libm. The argument is that this was a conscious engineering choice prioritizing code simplicity and potentially performance over the cross-platform reproducibility guarantee that had previously protected against OS fingerprinting.
Scrapfly situates the regression against the FP-Central research from 2016 that first exposed WebGL and Math.sin as OS-identifying vectors, noting that all major engines had normalized their math outputs or gated leaky APIs over the past five years. From this framing, Chromium 148 is uniquely regressive because it reopens an attack surface that the ecosystem had consciously closed.
Scrapfly's research team documented a regression that landed quietly in Chromium 148: `Math.tanh()` — the hyperbolic tangent function that almost nobody calls in production JavaScript — now returns bit-for-bit different results depending on the operating system running the browser. Feed it `0.5` on Windows and you get one 64-bit double. Feed it `0.5` on Linux and you get another. macOS and Android each produce their own signatures. The delta is in the last few bits of the mantissa, invisible to any human reading the console, but trivial for a fingerprinting script to hash.
The root cause isn't a bug — it's a deliberate simplification. Earlier V8 builds shipped their own portable implementation of transcendental functions like `tanh`, `sinh`, `atan2`, and friends, precisely so that JavaScript math would be reproducible across platforms. Somewhere between Chromium 147 and 148, that portable path was removed in favor of calling straight into the host's `libm`. On Windows that means the MSVCRT math routines. On Linux it's glibc. On macOS it's the Accelerate framework's vector libm. Each one implements the IEEE 754 elementary functions with slightly different polynomial approximations, and the last-bit disagreement is enough to identify the platform in a single function call.
Scrapfly's writeup shows the concrete evidence: five distinct output values for the same input across Windows 10, Windows 11, macOS, Ubuntu, and Android. No permission prompt, no API surface change, no console warning. Just `Math.tanh(0.5).toString(16)`.
Browser fingerprinting via floating-point drift isn't new — the FP-Central research from 2016 already showed that WebGL shader precision, `Math.sin`, and canvas rendering could reveal the OS with high accuracy. What made this feel like solved territory was that all the major engines had, over the last five years, either normalized their math outputs or gated the leaky APIs behind permissions. Firefox privacy mode rounds transcendental math. Safari added the `+0.0/-0.0` canvas noise. Chromium standardized its libm to produce identical bits across platforms. That last defense just got quietly removed, and the entire class of OS-detection-via-arithmetic is live again in the world's most-used browser engine.
The scope is bigger than Chromium proper. Every downstream browser — Edge, Brave, Opera, Vivaldi, Arc, plus the embedded WebViews on Android and Electron apps — inherits V8 and the same libm delegation. Brave's aggressive fingerprint-randomization layer will need a targeted patch. Electron apps that render user content in a webview now leak the host OS through a math call, regardless of what the app tells the user. Even server-side rendering pipelines that shell out to headless Chrome for screenshot generation will produce host-specific outputs, which is a subtle bug waiting to bite anyone doing perceptual-diff testing across CI runners.
The HN discussion (381 points at time of writing) split predictably. One camp argued this is a minor leak — the OS is already inferrable from User-Agent, screen dimensions, installed fonts, and a dozen other signals, so what's one more bit? The other camp pointed out the whole point of the User-Agent reduction initiative Chromium has been pushing for four years was to force fingerprinters onto more exotic, higher-friction signals. A single `Math.tanh` call is the opposite of high-friction. It's a one-liner that can't be blocked without breaking legitimate numerical code, and it works even when the UA string is completely stripped or spoofed.
The uncomfortable part: V8's team almost certainly knew this tradeoff and made it anyway, presumably for performance or maintenance reasons. The portable transcendental implementations were slow relative to hardware-accelerated libm calls, and maintaining a separate math library inside V8 is a real cost. But shipping a fingerprinting regression without so much as a mention in the release notes signals that the anti-fingerprinting posture inside the Chromium project has quietly softened from "prevent" to "discourage."
If you're building anything that touches privacy — a browser extension, a fintech app, a healthcare portal, an anonymous forum — audit your assumptions about OS visibility. User-Agent Client Hints, UA reduction, and any "don't expose the OS" configuration you've set are now leaky by default in Chromium 148 and later. The correct posture is to assume the OS is trivially detectable and design the threat model around that, rather than layering user-visible controls that don't actually hide anything.
For fingerprinting-resistant browsers and modes — Tor Browser, Brave Shields, Firefox's Resist Fingerprinting — expect targeted patches within weeks. Tor Browser will almost certainly ship a math-function shim that rounds or normalizes transcendental outputs. Brave's fingerprint randomization can add per-session noise to `Math.tanh` output without breaking most callers, since the actual precision requirement of `tanh` in production code is nowhere near the affected bits. If you distribute a hardened browser build, this is a small, self-contained patch worth landing now.
For CI and testing pipelines: if you rely on deterministic JavaScript math output across runners — perceptual-diff tests, snapshot tests that hash rendered numeric output, WebGL shader validation — pin your runner OS or add a normalization step. This is the same lesson infrastructure teams learned when GPUs entered CI: hardware differences leak into supposedly-pure computation, and "it works on my laptop" starts meaning something specific about that laptop's math library.
For everyone else: `Math.tanh` is not the only affected function. Anything V8 delegated to platform libm has the same property. Expect `Math.sinh`, `Math.cosh`, `Math.atan2`, `Math.log1p`, and `Math.expm1` to show similar cross-OS drift. A comprehensive fingerprint script probably only needs one or two of them to build a stable OS identifier that survives UA spoofing, VPNs, and private browsing modes.
The deeper story here is that browser anti-fingerprinting is a defense that requires continuous vigilance across every subsystem — layout, canvas, WebGL, audio, timing, and now arithmetic. Each engine team has to actively pay a performance tax to hold the line, and the moment that tax gets renegotiated, the fingerprint surface expands. Chromium 148's math regression will get patched, either upstream or by downstream forks, but it's a reminder that the privacy properties of a modern browser are not a stable equilibrium. They're a running fight, and the defender has to win every quarter.
Kind of a smart move by this company: write up an AI analysis of all fingerprinting techniques in hopes they get fixed after outrage so their scraping company can make more money. If it weren't for companies like this, fingerprinting wouldn't be so ubiquitous and the internet would be a be
I guess that's one more good reason to push for correctly rounded transcendental functions. I recently learned that they're basically solved now. [1][1] https://arith2026.org/program.html (2nd keynote)
Thanks for the writeup, claude
Ran Math.tanh(0.8) on Firefox on Windows and got the value that the article says is associated with Linux. Wonder why they only ran this on one browser.
Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.
> One tanh call on the right input is a per-OS signature. Claim macOS, return Linux math bits, and you have contradicted your own User-Agent.They (or rather the LLM that wrote this) missed that this is possibly fingerprintable to browser version range, which is slightly more interesting. Most use