Skip to content

chore(deps): update lockfile and constrain simple-git version#265

Merged
zalewskigrzegorz merged 1 commit intomainfrom
fix/simple-git-vulnerability
Mar 13, 2026
Merged

chore(deps): update lockfile and constrain simple-git version#265
zalewskigrzegorz merged 1 commit intomainfrom
fix/simple-git-vulnerability

Conversation

@zalewskigrzegorz
Copy link
Contributor

@zalewskigrzegorz zalewskigrzegorz commented Mar 12, 2026

What/Why/How?

What: Fix CVE-2026-28292 in simple-git (RCE via case-insensitive protocol.allow bypass).

Why: simple-git 3.20.0 (transitive via @redocly/realm) had a critical vulnerability (CVSS 9.8) where blockUnsafeOperationsPlugin could be bypassed with case variants like PROTOCOL.ALLOW=always, allowing arbitrary command execution via the ext:: protocol.

How: Added an npm override to force simple-git to >=3.32.3, which includes the fix. After npm install, the resolved version is 3.33.0.

Reference

Testing

  • Ran npm install and confirmed simple-git resolves to 3.33.0 in package-lock.json
  • Ran npm audit and confirmed the simple-git vulnerability is no longer reported

Screenshots (optional)

N/A

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

@zalewskigrzegorz zalewskigrzegorz requested a review from a team as a code owner March 12, 2026 17:37
package.json Outdated
"react-dom": "19.2.4",
"axios": "1.12.2"
"axios": "1.12.2",
"simple-git": ">=3.32.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

@zalewskigrzegorz can it be fixed with bumping @redocly/realm ?
Without adding overrides.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeh, should be possible
https://github.com/Redocly/redocly/pull/21556
But IDK if this is already deployed I will check this locally

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current version still had
'simple-git': '3.20.0',

Fix is in 3.32.3 We will need to wait for next release

Copy link
Contributor

Choose a reason for hiding this comment

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

Overrides like this one is not practical.
Imagine

  • someone review package.json file in a month
  • then check the usage
  • find that this package not used
  • and we are back where started

IMHO its better to fix this in the @redocly/realm package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I agree. I'll update this PR as soon as the new package is released.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @DmitryAnansky – PR updated! We now have a new version that doesn't have this vulnerability.

image

@zalewskigrzegorz zalewskigrzegorz force-pushed the fix/simple-git-vulnerability branch from 43661c3 to 0685d53 Compare March 13, 2026 14:59
@zalewskigrzegorz zalewskigrzegorz force-pushed the fix/simple-git-vulnerability branch from 0685d53 to 05d770d Compare March 13, 2026 15:07
@@ -270,6 +360,7 @@
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
"integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
"license": "MIT",
"peer": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

@zalewskigrzegorz
What version of npm are you using?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

10.9.3

@zalewskigrzegorz zalewskigrzegorz merged commit 14be6bc into main Mar 13, 2026
6 checks passed
@zalewskigrzegorz zalewskigrzegorz deleted the fix/simple-git-vulnerability branch March 13, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants