Unusual Observability edge requests /index.segments/__PAGE__.segment

I have a very simple site that I am using to advance my knowledge of next.js. I am looking at Observability:Edge Request to make sure my firewall is blocking php and security vectors like .git . I have been keeping up with next.js updates because of recent security CVE’s I have been seeing. Somewhere in the recent updates I started noticing routes like /index.segments/PAGE.segment. Is this someone trying to exploit a vulnerability or is it normal to see routes like this in next.js 6.1.1. The site is static with the most advanced functionality being a form that generates an email.

The current behavior in Observability is routes showing up as:
/index.segments/PAGE.segment
/index.segments/_tree.segment
/index.segments/_head.segment
/index.segments/@modal/DEFAULT.segment
Expected behavior is that Observability:Edge Requests would only show routes that browsers would follow ie. myfolder/mypage/

All of these odd routes show up as between 50% and 100% Cached so I am hoping they are system files and not some sort of attack or a misconfiguration on my part.

NPM outdated shows all packages up to date except tailwind and flowbite. I have not had an opportunity to update those yet.

Hi @earlrobb, I’m happy to see that you are already so aware in putting guardrails and security measures in place.

this in next.js 6.1.1

I think you mean version 16.1.1 here.

So, these routes are most likely Next.js internals that you don’t need to worry about and as you said they’re heavily cached meaning Next.js is using these for some user experience optimizations and don’t need to re-compute.

As long as there are not unusual spike in Edge requests or Compute usage, everything is well.

As a personal thumb rule, for a hobby project your usage should seldom go over 10-20% of Vercel’s hobby tier quota.

2 Likes

To add here, if you are concerned that there’s an attack, a good next step would be to look at the user agents visiting those routes and see if they look suspicious. They could also be benign crawlers.

1 Like