René's URL Explorer Experiment


Title: fix(deps): update dependency koa to v2.16.2 [security] by renovate[bot] · Pull Request #238 · 142vip/JavaScriptCollection · GitHub

Open Graph Title: fix(deps): update dependency koa to v2.16.2 [security] by renovate[bot] · Pull Request #238 · 142vip/JavaScriptCollection

X Title: fix(deps): update dependency koa to v2.16.2 [security] by renovate[bot] · Pull Request #238 · 142vip/JavaScriptCollection

Description: This PR contains the following updates: Package Change Age Confidence koa (source) 2.15.4 -> 2.16.2 WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information. GitHub Vulnerability Alerts CVE-2025-8129 Summary In the latest version of Koa, the back method used for redirect operations adopts an insecure implementation, which uses the user-controllable referrer header as the redirect target. Details on the API document https://www.koajs.net/api/response#responseredirecturl-alt, we can see: response.redirect(url, [alt]) Performs a [302] redirect to url. The string "back" is specially provided for Referrer support, using alt or "/" when Referrer does not exist. ctx.redirect('back'); ctx.redirect('back', '/index.html'); ctx.redirect('/login'); ctx.redirect('http://google.com'); however, the "back" method is insecure: https://github.com/koajs/koa/blob/master/lib/response.js#L322 back (alt) { const url = this.ctx.get('Referrer') || alt || '/' this.redirect(url) }, Referrer Header is User-Controlled. PoC there is a demo for POC: const Koa = require('koa') const serve = require('koa-static') const Router = require('@​koa/router') const path = require('path') const app = new Koa() const router = new Router() // Serve static files from the public directory app.use(serve(path.join(__dirname, 'public'))) // Define routes router.get('/test', ctx => { ctx.redirect('back', '/index1.html') }) router.get('/test2', ctx => { ctx.redirect('back') }) router.get('/', ctx => { ctx.body = 'Welcome to the home page! Try accessing /test, /test2' }) app.use(router.routes()) app.use(router.allowedMethods()) const port = 3000 app.listen(port, () => { console.log(`Server running at http://localhost:${port}`) }) Proof Of Concept GET /test HTTP/1.1 Host: 127.0.0.1:3000 Referer: http://www.baidu.com Connection: close GET /test2 HTTP/1.1 Host: 127.0.0.1:3000 Referer: http://www.baidu.com Connection: close Impact https://learn.snyk.io/lesson/open-redirect/ Release Notes koajs/koa (koa) v2.16.2 Compare Source What's Changed fix: only allow back redirect to the same origin referer by @​fengmk2 in https://github.com/koajs/koa/pull/1898 Full Changelog: koajs/koa@v2.16.1...v2.16.2 v2.16.1 Compare Source fix: don't render redirect values in anchor ref v2.16.0 Compare Source This is a backported release to fix core underlying issue with HEAD requests when using http2.createSecureServer. See discussion at https://github.com/koajs/koa/pull/1593 and https://github.com/koajs/koa/issues/1547. fix missing cleanup, if response socket is no longer writeable (issue 1547) (https://github.com/koajs/koa/pull/1593) 399cb6b Configuration 📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined). 🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied. ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 Ignore: Close this PR and you won't be reminded about this update again. If you want to rebase/retry this PR, check this box This PR was generated by Mend Renovate. View the repository job log.

Open Graph Description: This PR contains the following updates: Package Change Age Confidence koa (source) 2.15.4 -> 2.16.2 WarningSome dependencies could not be looked up. Check the Dependency Dashboard f...

X Description: This PR contains the following updates: Package Change Age Confidence koa (source) 2.15.4 -> 2.16.2 WarningSome dependencies could not be looked up. Check the Dependency Dashboa...

Opengraph URL: https://github.com/142vip/JavaScriptCollection/pull/238

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:7134a1b3-4a74-a94f-d3af-73531190d6f4
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idAFA2:1E790:87571D:B92933:698E26B8
html-safe-nonce684172be455220c5097c463d8d95718175befae44e1d2cb553584d64cbec3f80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkEyOjFFNzkwOjg3NTcxRDpCOTI5MzM6Njk4RTI2QjgiLCJ2aXNpdG9yX2lkIjoiODEyNDI2NTk0MTY2MTc4NzgzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacad6450bc1d7b4eb0fcff2449ef23ae309b5aced33f2c7a9535c2b86d52029b70
hovercard-subject-tagpull_request:2702175735
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/142vip/JavaScriptCollection/pull/238/checks
twitter:imagehttps://avatars.githubusercontent.com/in/2740?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/2740?s=400&v=4
og:image:altThis PR contains the following updates: Package Change Age Confidence koa (source) 2.15.4 -> 2.16.2 WarningSome dependencies could not be looked up. Check the Dependency Dashboard f...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082
turbo-cache-controlno-cache
go-importgithub.com/142vip/JavaScriptCollection git https://github.com/142vip/JavaScriptCollection.git
octolytics-dimension-user_id105834656
octolytics-dimension-user_login142vip
octolytics-dimension-repository_id268041774
octolytics-dimension-repository_nwo142vip/JavaScriptCollection
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id268041774
octolytics-dimension-repository_network_root_nwo142vip/JavaScriptCollection
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2f1e729d231ea1ea5a098d21f1491b75bea53631
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F142vip%2FJavaScriptCollection%2Fpull%2F238%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F142vip%2FJavaScriptCollection%2Fpull%2F238%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=142vip%2FJavaScriptCollection
Reloadhttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
Reloadhttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
Reloadhttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
142vip https://patch-diff.githubusercontent.com/142vip
JavaScriptCollectionhttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2F142vip%2FJavaScriptCollection
Fork 3 https://patch-diff.githubusercontent.com/login?return_to=%2F142vip%2FJavaScriptCollection
Star 16 https://patch-diff.githubusercontent.com/login?return_to=%2F142vip%2FJavaScriptCollection
Code https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection
Issues 2 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/issues
Pull requests 1 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pulls
Actions https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions
Projects 0 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/projects
Wiki https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/wiki
Security 0 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/security
Insights https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pulse
Code https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection
Issues https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/issues
Pull requests https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pulls
Actions https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions
Projects https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/projects
Wiki https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/wiki
Security https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/security
Insights https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2F142vip%2FJavaScriptCollection%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2F142vip%2FJavaScriptCollection%2Fissues%2Fnew%2Fchoose
renovatehttps://patch-diff.githubusercontent.com/apps/renovate
nexthttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/tree/next
renovate/koa-npm-koa-vulnerabilityhttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/tree/renovate/koa-npm-koa-vulnerability
Conversation 1 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238
Commits 1 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/commits
Checks 3 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
Files changed https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/files
Please reload this pagehttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
Sign in for the full log viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2F142vip%2FJavaScriptCollection%2Fpull%2F238%2Fchecks
fix(deps): update dependency koa to v2.16.2 [security] https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks
CodeQL on: pull_request https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions/runs/16627949147
Analyze https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions/runs/16627949147/job/47049503497?pr=238
CI on: pull_request https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions/runs/16627949148
基础编译构建 https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/actions/runs/16627949148/job/47049503441?pr=238
CodeQL https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks?check_run_id=47049601156
https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks#annotation:3:67
https://patch-diff.githubusercontent.com/142vip/JavaScriptCollection/pull/238/checks#annotation:3:66
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

Viewport: width=device-width


URLs of crawlers that visited me.