René's URL Explorer Experiment


Title: SDK-7999 Reject TLS chains carrying the compromised eMudhra intermediate keys by harshit-browserstack · Pull Request #188 · browserstack/browserstack-local-nodejs · GitHub

Open Graph Title: SDK-7999 Reject TLS chains carrying the compromised eMudhra intermediate keys by harshit-browserstack · Pull Request #188 · browserstack/browserstack-local-nodejs

X Title: SDK-7999 Reject TLS chains carrying the compromised eMudhra intermediate keys by harshit-browserstack · Pull Request #188 · browserstack/browserstack-local-nodejs

Description: Jira: SDK-7999. Same fix as browserstack-binary#1960, browserstack-node-agent#2742 and browserstack-cypress-cli#1203. Problem The private keys of 8 eMudhra intermediate CAs are recoverable (incident), and Node.js has not shipped the distrust yet (nodejs/node#66871 is unreleased). The binary-endpoint lookup (/binary/api/v1/endpoint, which carries the access key) and the binary download both accept a certificate issued under them, so anyone on the network path can read the key or serve their own BrowserStackLocal, which this library then runs. Change New lib/distrustedCaCheck.js wraps tls.checkServerIdentity: Node's hostname check runs first, then the connection is refused (ERR_TLS_DISTRUSTED_INTERMEDIATE) if any certificate in the chain has one of the 8 published SPKI SHA-256 hashes. Matching the key catches both the emSign-issued and the Sectigo cross-signed copies. Installed in lib/Local.js and in lib/fetchDownloadSourceUrl.js / lib/download.js, because startSync runs those two as separate node processes that never load Local.js. The SPKI is re-exported with crypto.createPublicKey from the certificate (cert.pubkey is the raw point for EC keys, and X509Certificate needs Node 15.6). On Node older than 11.6, where createPublicKey does not exist, the check is skipped. Every copy of the module in a process shares one hash set and one wrapper, so it composes with the same check in the node SDK. Tests bs-host pointed at dv-g3b-emudhra.we-have-a-problem.com: 1.5.16 completes TLS and receives the host's reply; with this change the endpoint lookup fails with ERR_TLS_DISTRUSTED_INTERMEDIATE in both startSync (child process) and start, on Node 14 and 22. Real downloads and tunnels still work: the node SDK downloaded BrowserStackLocal through startSync with this change, and Automate sessions through the tunnel passed. npm test: 47 passing, 2 pending, 4 failing; the same 4 fail on master (the download tests build LocalBinary without an access key).

Open Graph Description: Jira: SDK-7999. Same fix as browserstack-binary#1960, browserstack-node-agent#2742 and browserstack-cypress-cli#1203. Problem The private keys of 8 eMudhra intermediate CAs are recoverable (inciden...

X Description: Jira: SDK-7999. Same fix as browserstack-binary#1960, browserstack-node-agent#2742 and browserstack-cypress-cli#1203. Problem The private keys of 8 eMudhra intermediate CAs are recoverable (inciden...

Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/pull/188

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:df48a18b-3313-3e75-9fc3-27e17a6c455d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA602:2F022B:2656D7:35448E:6B043A5C
html-safe-noncec89164129d0daeaad50647e76ffd13ff17142b9aafe09f8ed0768b225d589411
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjAyOjJGMDIyQjoyNjU2RDc6MzU0NDhFOjZCMDQzQTVDIiwidmlzaXRvcl9pZCI6IjYwMzUyNjQ3ODQ1OTE3NjQwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc14dd9c088e667a0ff34ed5277ace698e8384effd0bc726f05b0393ec15637b1
hovercard-subject-tagpull_request:4951166310
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-local-nodejs/pull/188/files
twitter:imagehttps://avatars.githubusercontent.com/u/250154764?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/250154764?s=400&v=4
og:image:altJira: SDK-7999. Same fix as browserstack-binary#1960, browserstack-node-agent#2742 and browserstack-cypress-cli#1203. Problem The private keys of 8 eMudhra intermediate CAs are recoverable (inciden...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923223
octolytics-dimension-repository_nwobrowserstack/browserstack-local-nodejs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923223
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-nodejs
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F188%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F188%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-nodejs
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
browserstackhttps://github.com/browserstack
browserstack-local-nodejshttps://github.com/browserstack/browserstack-local-nodejs
Codehttps://github.com/browserstack/browserstack-local-nodejs
Issues25 (25)https://github.com/browserstack/browserstack-local-nodejs/issues
Pull requests29 (29)https://github.com/browserstack/browserstack-local-nodejs/pulls
Actionshttps://github.com/browserstack/browserstack-local-nodejs/actions
Projectshttps://github.com/browserstack/browserstack-local-nodejs/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-nodejs/security
Insightshttps://github.com/browserstack/browserstack-local-nodejs/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
harshit-browserstackhttps://github.com/harshit-browserstack
browserstack:masterhttps://github.com/browserstack/browserstack-local-nodejs/tree/master
harshit-browserstack:fix/SDK-7999-emudhra-key-blockhttps://github.com/harshit-browserstack/browserstack-local-nodejs/tree/fix/SDK-7999-emudhra-key-block
Conversation 4 https://github.com/browserstack/browserstack-local-nodejs/pull/188
Commits 4 https://github.com/browserstack/browserstack-local-nodejs/pull/188/commits
Checks 2 https://github.com/browserstack/browserstack-local-nodejs/pull/188/checks
Files changed https://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
SDK-7999 Reject TLS chains carrying the compromised eMudhra intermediate keys https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#top
Show all changes 4 commits https://github.com/browserstack/browserstack-local-nodejs/pull/188/files
10b6544 Reject TLS chains carrying the compromised eMudhra intermediate keys harshit-browserstack Oct 21, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/188/commits/10b6544564b6035356412e096704de8b11e1cf31
6a6ebbe fix(tls): check each certificate separately and match the distrusted … harshit-browserstack Oct 21, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/188/commits/6a6ebbeca274aa9b6b8f4c7b2c7731cb44ed0155
43e4a17 fix(tls): compare distrusted CA names the way OpenSSL does (SDK-7999) harshit-browserstack Oct 21, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/188/commits/43e4a1766f20006673aa8990b78228fb7cbbfcdb
3b0e117 fix(tls): keep the install state on the tls module (SDK-7999) harshit-browserstack Oct 21, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/188/commits/3b0e1178ec9b17b8329b93a590570cc657e70b2c
Clear filters https://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
Local.js https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
distrustedCaCheck.js https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-5235256b3ea4e2de485696001a8d566fc233b4a5b5d0ecd7d81943856b6f9ec6
download.js https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
fetchDownloadSourceUrl.js https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/Local.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
View file https://github.com/browserstack/browserstack-local-nodejs/blob/3b0e1178ec9b17b8329b93a590570cc657e70b2c/lib/Local.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/188/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/distrustedCaCheck.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-5235256b3ea4e2de485696001a8d566fc233b4a5b5d0ecd7d81943856b6f9ec6
View file https://github.com/browserstack/browserstack-local-nodejs/blob/3b0e1178ec9b17b8329b93a590570cc657e70b2c/lib/distrustedCaCheck.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/188/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/download.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
View file https://github.com/browserstack/browserstack-local-nodejs/blob/3b0e1178ec9b17b8329b93a590570cc657e70b2c/lib/download.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/188/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/fetchDownloadSourceUrl.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
View file https://github.com/browserstack/browserstack-local-nodejs/blob/3b0e1178ec9b17b8329b93a590570cc657e70b2c/lib/fetchDownloadSourceUrl.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/188/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/188/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/188/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.