Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 5 additions & 36 deletions test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"mocha": "^11.7.2",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
},
"overrides": {
"serialize-javascript": "^7.0.3"
Comment on lines +28 to +29
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify serialize-javascript version and check for security advisories

# Check if version 7.0.3 exists on npm registry
echo "Checking npm registry for serialize-javascript versions..."
curl -s https://registry.npmjs.org/serialize-javascript | jq -r '.versions | keys[] | select(startswith("7.0"))' | sort -V

# Check the latest version
echo -e "\nLatest version:"
curl -s https://registry.npmjs.org/serialize-javascript | jq -r '.["dist-tags"].latest'

# Check for security advisories
echo -e "\nChecking for security advisories..."
gh api graphql -f query='
{
  securityVulnerabilities(first: 10, ecosystem: NPM, package: "serialize-javascript") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Repository: mobile-next/mobilecli

Length of output: 1440


Update to serialize-javascript@^7.0.5 to fix all known vulnerabilities.

Version 7.0.3 exists and fixes the HIGH severity RCE vulnerability (patched in 7.0.3), but a newer MODERATE severity CPU Exhaustion DoS vulnerability (CVE in serialize-javascript < 7.0.5) is patched in version 7.0.5 (released 2026-03-27). Update the override from ^7.0.3 to ^7.0.5 to ensure all known vulnerabilities are addressed.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@test/package.json` around lines 28 - 29, The overrides entry for
"serialize-javascript" pins a vulnerable version; update the override value
under the JSON "overrides" object for the "serialize-javascript" key from
"^7.0.3" to "^7.0.5" so the dependency uses the patch that fixes the CVE (CPU
exhaustion DoS) released in 7.0.5.

}
}
Loading