Hi,
Please see below Security Advisory:
Security Advisory: CVE-2025-66478
https://nextjs.org/blog/CVE-2025-66478
At minimum I suggest you stop your app (so that the cryptominer is no longer running). Update your clean source files so that known vulnerabilities are patched, test locally, deploy updated app, change any secret(s)/api keys/etc. that your app has access to. Make sure no malicious files remain.
You should assess all the potential effects of the malicious code having access to everything that your app has access to, and take steps to mitigate. Consider engaging cybersecurity specialist to provide analysis and detailed advice.
-TP