Skip to content

fix(nexus): upgrade jsonparser to v1.1.2 to fix DoS vulnerability#3377

Merged
michaeljguarino merged 1 commit intomasterfrom
agent/fix-jsonparser-cve-1711887691000
Mar 31, 2026
Merged

fix(nexus): upgrade jsonparser to v1.1.2 to fix DoS vulnerability#3377
michaeljguarino merged 1 commit intomasterfrom
agent/fix-jsonparser-cve-1711887691000

Conversation

@plural-copilot
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades github.com/buger/jsonparser from v1.1.1 to v1.1.2
  • Fixes a Denial of Service vulnerability where the Delete function fails to properly validate offsets when processing malformed JSON input, leading to a negative slice index and runtime panic
  • Affected docker image: ghcr.io/pluralsh/nexus:0.12.9

Changes

  • Updated go/nexus/go.mod to use jsonparser v1.1.2
  • Updated go/nexus/go.sum with new dependency checksums

Verification

  • ✅ Code compiles successfully
  • ✅ All tests pass (config, console, middleware, server)

Fixes a Denial of Service vulnerability (CVE) in jsonparser where the
Delete function fails to properly validate offsets when processing
malformed JSON input, which can lead to a negative slice index and a
runtime panic.

Affected image: ghcr.io/pluralsh/nexus:0.12.9
Copy link
Copy Markdown
Contributor Author

@plural-copilot plural-copilot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR was generated by the claude (engine: claude) agent runtime. Here's some useful information you might want to know to evaluate
the ai's perfomance:

Name Details
💬 Prompt Security scanners have found the following vulnerability in our cluster:...
🔗 Run history View run history

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 31, 2026

Greptile Summary

This PR upgrades the indirect dependency github.com/buger/jsonparser from v1.1.1 to v1.1.2 in the go/nexus module, patching the denial-of-service vulnerability tracked as CVE-2020-10675 / GO-2021-0057 (out-of-bounds panic / infinite loop when parsing malformed JSON input).

  • go/nexus/go.mod: version constraint updated from v1.1.1 → v1.1.2
  • go/nexus/go.sum: module digest updated to the v1.1.2 hash (h1:frqHqw7otoVbk5M8LlE/L7HTnIq2v9RX6EJ48i9AxJk=); the go.mod-only hash is unchanged between the two patch versions, which is expected when the upstream go.mod was not modified
  • v1.1.2 is the latest official release (March 19, 2026) and is already packaged by Debian, confirming its legitimacy
  • The change is minimal and scoped entirely to this one indirect dependency — no other packages are affected

Confidence Score: 5/5

This PR is safe to merge — it is a targeted, minimal security patch with no logic changes.

The change touches only two dependency-management files (go.mod and go.sum), upgrades a single indirect library by one patch version, and the new checksums match the official upstream release. No application logic is modified, and no other dependencies are affected.

No files require special attention.

Important Files Changed

Filename Overview
go/nexus/go.mod Bumps github.com/buger/jsonparser indirect dependency from v1.1.1 to v1.1.2 to address the DoS vulnerability (CVE-2020-10675 / GO-2021-0057)
go/nexus/go.sum Updates the module hash for buger/jsonparser to the v1.1.2 digest; the go.mod-only hash is unchanged (expected for a patch release that doesn't alter go.mod)

Reviews (1): Last reviewed commit: "fix(nexus): upgrade github.com/buger/jso..." | Re-trigger Greptile

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub.com/​go-chi/​chi/​v5@​v5.2.470100100100100
Addedgithub.com/​maximhq/​bifrost/​core@​v1.4.775100100100100

View full report

@michaeljguarino michaeljguarino added the enhancement New feature or request label Mar 31, 2026
@michaeljguarino michaeljguarino merged commit 0b4d9f4 into master Mar 31, 2026
18 of 19 checks passed
@michaeljguarino michaeljguarino deleted the agent/fix-jsonparser-cve-1711887691000 branch March 31, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant