registry.npmjs.org audit endpoint returns 500 for a payload containing axios #187544
Replies: 7 comments 6 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
whatever in the world is going on here i would love to read the eventual post mortem / RCA on it :) |
Beta Was this translation helpful? Give feedback.
-
|
First time for this? Still down...yes, very fishy. Guess we'll watch the security news next week. |
Beta Was this translation helpful? Give feedback.
-
CI Workaround for pnpm usersSince The trick is to generate a steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
# Install with your preferred package manager as usual
- run: corepack enable
- run: pnpm install --frozen-lockfile
# Generate a package-lock.json from the existing node_modules
- name: Generate npm lockfile
run: npm i --package-lock-only --ignore-scripts
# Run audit via npm (uses the bulk endpoint that actually works)
- name: Security audit
run: npm audit --omit=dev --audit-level=highKey points:
Tested and working as of today. Should be easy to revert once the legacy endpoint is fixed. |
Beta Was this translation helpful? Give feedback.
-
|
i copy pasted the issue to the npm cli page, hopefully someone see's this soon 🤞 |
Beta Was this translation helpful? Give feedback.
-
|
It's been erroring for at least 8 hours now, my build pipeline was broken. |
Beta Was this translation helpful? Give feedback.
-
|
yet npm's status page claims "All Systems Operational". #crazytown |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I am seeing consistent 500 Internal Server Error responses from the npm security audit endpoint.
POST https://registry.npmjs.org/-/npm/v1/security/audits
This reproduces with a minimal package tree containing only axios (no auth, no private registry):
Request:
curl -sS -v \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ --data-binary @- \ "https://registry.npmjs.org/-/npm/v1/security/audits" <<'JSON' { "name": "genesis-dashboard-new", "version": "0.0.0", "install": ["axios@1.13.2"], "remove": [], "metadata": {}, "requires": { "axios": "^1.12.0" }, "dependencies": { "axios": { "version": "1.13.2", "requires": {}, "dependencies": {}, "dev": false } } }JSONResult:
HTTP status: 500
Response body: {"error":"Internal Server Error"}
Example response headers from a repro:
The same endpoint returns 200 for other minimal payloads (example: left-pad@1.3.0), so the service is up, but appears to error for specific package trees (this minimal case is axios).
This is impacting CI because yarn audit relies on this endpoint.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions