fix(deps): update dependency ua-parser-js to v2.0.10 [security]#462
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency ua-parser-js to v2.0.10 [security]#462renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.4→2.0.10UAParser.js: Unbounded
Sec-CH-UA-Modelparsing can trigger ReDoS inwithClientHints()CVE-2026-48125 / GHSA-9h5v-pfqq-x599
More information
Details
Summary
A regular expression denial-of-service (ReDoS) vulnerability has been discovered in
ua-parser-jswhen using the Client Hints API. By sending a craftedSec-CH-UA-Modelheader to an application that callsUAParser(headers).withClientHints(), an attacker can cause the parser to spend excessive CPU time due to catastrophic backtracking in the device regex:/ ([\w ]+) miui\/v?\d/iUnlike when using the
User-Agentvalue, which has a hard limit ofUA_MAX_LENGTH = 500, when using Client Hints, values are copied without a length limit before being passed into regex parsing.PoC
Impact
This vulnerability allows an unauthenticated attacker to trigger a denial-of-service condition in any server-side application that uses
UAParser(headers).withClientHints(). A single request with a ~32,000-character model value can consume over 400ms of CPU time, with parsing time growing polynomially with input length. The impact is availability only, there is no confidentiality or integrity impact.Affected Versions
ua-parser-jsversions>=2.0.1, <=2.0.9are affected. ThewithClientHints()API is not present in version0.7.xor1.x.Patches
A patch has been released to fix the vulnerable regular expression and limit the Client Hints input. Users should update to version
2.0.10or later.References
Credits
Thanks to @sondt99, who first reported the issue.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
faisalman/ua-parser-js (ua-parser-js)
v2.0.10Compare Source
useExtension()in UAParser to extend custom detection rulesinappbrowserextensionssubmodule:helperssubmodule:isElectron()function return itselfv2.0.9Compare Source
extensionssubmodule:v2.0.8Compare Source
extensionssubmodule:helperssubmodule:getOutlookEdition()to map Outlook versions to their marketing editionsv2.0.7Compare Source
withClientHints()&withFeatureCheck()helperssubmodule into several new submodules:bot-detection:isAIAssistant()isAICrawler()isBot()browser-detectionisChromeFamily()isElectron()isFromEU()isStandalonePWA()device-detectiongetDeviceVendor()isAppleSilicon()extensionssubmodule:v2.0.6Compare Source
setUA(): trim leading space from user-agent string inputundicidependency with node's internalHeadersextensionssubmodule:v2.0.5Compare Source
node-fetchdependency withundicienumsubmoduleenumssubmodule:Extensionenum forextensionssubmoduleBrowser=>BrowserNameCPU=>CPUArchDevice=>DeviceTypeVendor=>DeviceVendorEngine=>EngineNameOS=>OSNameextensionssubmodule:APIs-Google, Algolia Crawler, Algolia Crawler Renderscript, Baidu-ADS, BLEXBot, botify, Bravebot, Claude-Web, cohere-training-data-crawler, contxbot, Cotoyogi, Coveobot, CriteoBot, DeepSeekBot, DuckDuckGo-Favicons-Bot, Elastic, FirecrawlAgent, Freespoke, Google-CloudVertexBot, HuggingFace-Bot, Kagibot, Kangaroo Bot, marginalia, msnbot, OnCrawl, Replicate-Bot, RunPod-Bot, SBIntuitionsBot, SeekportBot, Siteimprove, Sogou Pic Spider, TikTokSpider, TwinAgent, v0bot, webzio, Webzio-Extended, xAI-Bot, YandexAccessibilityBot, YandexAdditionalBot, YandexAdNet, YandexBot MirrorDetector, YandexBlogs, YandexComBot, YandexFavicons, YandexImageResizer, YandexImages, YandexMarket, YandexMetrika, YandexMedia, YandexMobileBot, YandexMobileScreenShotBot, YandexNews, YandexOntoDB, YandexOntoDBAPI, YandexPartner, YandexRCA, YandexRenderResourcesBot, YandexScreenshotBot, YandexSpravBot, YandexTracker, YandexVertis, YandexVerticals, YandexVideo, YandexVideoParser, YandexWebmaster, YepBot, ZumBot
Asana, bitlybot, Blueno, BufferLinkPreviewBot, Chrome-Lighthouse, Gemini-Deep-Research, HubSpot Page Fetcher, kakaotalk-scrap, vercel-favicon-bot, vercel-screenshot-bot, vercelflags, verceltracing, YaDirectFetcher, YandexCalendar, YandexDirect, YandexDirectDyn, YandexForDomain, YandexPagechecker, YandexSearchShop, YandexSitelinks, YandexUserproxy
helperssubmodule:isAIBot():Bravebot, cohere-training-data-crawler, FirecrawlAgent, HuggingFace-Bot, Kangaroo Bot, PanguBot, Replicate-Bot, RunPod-Bot, TikTokSpider, Together-Bot, v0bot, xAI-Bot
Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.