Skip to content

fix: upgrade serialize-javascript to 7.0.3 (GHSA-5c6j-r48x-rmvq) - #10239

Open
anupamme wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
anupamme:fix-repo-blockly-ghsa-5c6j-r48x-rmvq-serialize-javascript
Open

fix: upgrade serialize-javascript to 7.0.3 (GHSA-5c6j-r48x-rmvq)#10239
anupamme wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
anupamme:fix-repo-blockly-ghsa-5c6j-r48x-rmvq-serialize-javascript

Conversation

@anupamme

@anupamme anupamme commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Upgrade serialize-javascript from 6.0.2 to 7.0.3 to fix GHSA-5c6j-r48x-rmvq.

Vulnerability

Field Value
ID GHSA-5c6j-r48x-rmvq
Severity HIGH
Scanner trivy
Rule GHSA-5c6j-r48x-rmvq
File package-lock.json (dependency: serialize-javascript)
Assessment Present in dependency tree, not confirmed reachable

Description: Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()

Changes

  • package.json
  • package-lock.json

Behavior Preservation

The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
@anupamme
anupamme requested a review from a team as a code owner August 6, 2026 17:29
@anupamme
anupamme requested a review from gonfunko August 6, 2026 17:29
@github-actions github-actions Bot added the PR: fix Fixes a bug label Aug 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:

  • You can find tips about contributing to Blockly and how to validate your changes on our developer site.
  • We use conventional commits to make versioning the package easier. Make sure your commit message is in the proper format or learn how to fix it.
  • If any of the other checks on this PR fail, you can click on them to learn why. It might be that your change caused a test failure, or that you need to double-check the style guide.
    Thank you for opening this PR! A member of the Blockly team will review it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants