Skip to content

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

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

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

Conversation

@anupamme

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 yarn.lock
Assessment Pattern match — needs manual review

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

Evidence

Scanner confirmation: trivy rule GHSA-5c6j-r48x-rmvq flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This is a Node.js library - vulnerabilities affect downstream consumers who use this package.

Changes

  • package.json
  • yarn.lock

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 19, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: anupamme / name: orbisai0security (d4e4995)

@netlify

netlify Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d4e4995
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/6a5cbe64dba59800087acd0b
😎 Deploy Preview https://deploy-preview-16285--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Jul 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@16285

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@16285

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@16285

create-jest

npm i https://pkg.pr.new/create-jest@16285

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@16285

expect

npm i https://pkg.pr.new/expect@16285

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@16285

jest

npm i https://pkg.pr.new/jest@16285

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@16285

jest-circus

npm i https://pkg.pr.new/jest-circus@16285

jest-cli

npm i https://pkg.pr.new/jest-cli@16285

jest-config

npm i https://pkg.pr.new/jest-config@16285

@jest/console

npm i https://pkg.pr.new/@jest/console@16285

@jest/core

npm i https://pkg.pr.new/@jest/core@16285

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@16285

jest-diff

npm i https://pkg.pr.new/jest-diff@16285

jest-docblock

npm i https://pkg.pr.new/jest-docblock@16285

jest-each

npm i https://pkg.pr.new/jest-each@16285

@jest/environment

npm i https://pkg.pr.new/@jest/environment@16285

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@16285

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@16285

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@16285

@jest/expect

npm i https://pkg.pr.new/@jest/expect@16285

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@16285

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@16285

@jest/globals

npm i https://pkg.pr.new/@jest/globals@16285

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@16285

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@16285

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@16285

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@16285

jest-message-util

npm i https://pkg.pr.new/jest-message-util@16285

jest-mock

npm i https://pkg.pr.new/jest-mock@16285

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@16285

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@16285

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@16285

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@16285

jest-resolve

npm i https://pkg.pr.new/jest-resolve@16285

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@16285

jest-runner

npm i https://pkg.pr.new/jest-runner@16285

jest-runtime

npm i https://pkg.pr.new/jest-runtime@16285

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@16285

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@16285

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@16285

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@16285

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@16285

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@16285

@jest/transform

npm i https://pkg.pr.new/@jest/transform@16285

@jest/types

npm i https://pkg.pr.new/@jest/types@16285

jest-util

npm i https://pkg.pr.new/jest-util@16285

jest-validate

npm i https://pkg.pr.new/jest-validate@16285

jest-watcher

npm i https://pkg.pr.new/jest-watcher@16285

jest-worker

npm i https://pkg.pr.new/jest-worker@16285

pretty-format

npm i https://pkg.pr.new/pretty-format@16285

commit: d4e4995

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.

1 participant