navigator.oscpu, vendor, productSub
Legacy engine strings: oscpu (Firefox), vendor, vendorSub, productSub, cpuClass.
In one line
Can see old engine labels that tell Chrome, Safari, and Firefox apart
Legacy engine strings: oscpu (Firefox), vendor, vendorSub, productSub, cpuClass.
Quick tells for the rendering engine and OS. vendor is Google Inc., Apple Computer, Inc. or empty (Firefox); productSub is 20030107 on Chromium and Safari, 20100101 on Firefox. Used to catch spoofed browsers.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Check vendor, productSub, and oscpu text
- Tell the browser engine and OS family
- Catch a browser that is faking its identity
It cannot
- See your exact device or OS version
- See anything in oscpu on Chrome or Safari
- See your name, location, or accounts
- Tell you apart from others using the same browser
How it differs between platforms: The oscpu value comes back only in Firefox. Other browsers return nothing.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 1 | 2004-11-09 | oscpu is Firefox only |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | navigator.oscpu, navigator.vendor, navigator.productSub, navigator.cpuClass |
| Browser compat keys | api.Navigator.vendorapi.Navigator.oscpuapi.Navigator.productSub |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
vendor | enum | None | Google Inc., Apple Computer, Inc., empty | Not listed |
productSub | enum | None | 20030107 or 20100101 | Not listed |
oscpu | string | None | Firefox only, e.g. Intel Mac OS X 10.15 | frozen in recent versions |
Technical limits
- Deprecated fields; values are constants per engine
The story
What it is
Old engine strings like oscpu, vendor and productSub that quickly show which browser engine you run.
For you
You never see them. A site can read one short string and know you use Firefox, Chrome or Safari, even if you changed the user agent.
For makers
Different engines return different values, so these are quick tells. Fraud teams use them to catch fakes. Developers use them to work around engine differences.
Where you see it
| Type | Example | Apps |
|---|---|---|
| security | A bot defence service sees vendor says Google Inc. but oscpu exists, which only Firefox has, and flags the visitor. | DataDome, Akamai Bot Manager |
| ads | An ad verification script separates real browsers from headless tools by checking these fields. | Integral Ad Science |
| developer | A support page prints these values to help staff work out which engine a customer runs. | None named |
| games | A browser game portal enables a fix for a known engine bug when it recognises the engine. | None named |
| analytics | A traffic report separates Firefox, Safari and Chrome even when the user agent is hidden. | None named |
| banking | A bank adds a point to a login risk score when the engine tells disagree. | None named |
Risks
- Quick engine test
- Mismatch looks suspicious
Good uses and abuse
Legitimate uses
- Engine detection
Known abuse
- Spoof detection for anti-fraud
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
A real example: LinkedIn
Collected as vendor, vendorSub, productSub, oscpu, cpuClass. Read by the LinkedIn APFC fingerprint script (48 features, alleged by BrowserGate, partly confirmed by BleepingComputer).
History
- 2023-02, Firefox 110: oscpu frozen alongside UA
Related capabilities
Related
- navigator.platform. Can see a short label for your OS family, like Win32, MacIntel, or iPhone
Sources
- fingerprintjs source: os_cpu
- fingerprintjs source: vendor
- fingerprintjs source: cpu_class
- CreepJS (abrahamjuliot)
How well checked: Based on official documentation.