Skip to content

fix: scope @browserbasehq/* advisories to only compromised versions#1139

Open
shrey150 wants to merge 1 commit intoossf:mainfrom
shrey150:fix/browserbase-version-ranges
Open

fix: scope @browserbasehq/* advisories to only compromised versions#1139
shrey150 wants to merge 1 commit intoossf:mainfrom
shrey150:fix/browserbase-version-ranges

Conversation

@shrey150
Copy link
Copy Markdown

Summary

Removes overly broad SEMVER ranges ("introduced": "0") from 4 @browserbasehq/* advisories. Only a single version of each package was compromised during the Shai-Hulud 2.0 attack (Nov 2025). The broad ranges cause tools consuming OSV data (e.g., Goose) to incorrectly flag all versions as malicious, including current clean releases.

Changes

For each of the 4 affected advisories:

  • Removed the overly broad ranges field from affected[0] (which said all versions >= 0 are malicious)
  • Replaced the broad ranges in the ghsa-malware origin under database_specific with versions matching the single compromised version
  • The versions field in affected[0] was already correct and unchanged
Advisory Package Only Malicious Version
MAL-2025-191193 @browserbasehq/bb9 1.2.21
MAL-2025-191194 @browserbasehq/director-ai 1.0.3
MAL-2025-191195 @browserbasehq/mcp 2.1.1
MAL-2025-191199 @browserbasehq/stagehand-docs 1.0.1

The other 3 @browserbasehq/* advisories (MAL-2025-191196, MAL-2025-191197, MAL-2025-191198) already had correctly scoped versions-only entries and did not need changes.

Context

Remove overly broad SEMVER ranges ("introduced": "0") from 4
@browserbasehq/* advisories. Only a single version of each package was
compromised during the Shai-Hulud 2.0 attack (Nov 2025). The broad
ranges cause tools consuming OSV data to incorrectly flag all versions
as malicious, including current clean releases.

Affected advisories:
- MAL-2025-191193: @browserbasehq/bb9 (only 1.2.21 was malicious)
- MAL-2025-191194: @browserbasehq/director-ai (only 1.0.3 was malicious)
- MAL-2025-191195: @browserbasehq/mcp (only 2.1.1 was malicious)
- MAL-2025-191199: @browserbasehq/stagehand-docs (only 1.0.1 was malicious)

The `versions` field already correctly identifies the single compromised
version in each case. The `ranges` field from the ghsa-malware source
was the only source of the overly broad scope.

Fixes: ossf#1138
"import_time": "2025-11-25T00:47:38.435172124Z",
"id": "GHSA-xxg4-p932-cqpg",
"modified_time": "2025-11-25T00:07:08Z",
"ranges": [
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.

Do not modify source reports - this is the history reference, and as long as it won't be downloaded again from the source, it won't affect the main "affected" key. Fixing the main "affected" key should be enough. @calebbrown please correct me if I'm wrong.

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.

You are correct @kam193. This part of the OSV should not be modified.

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.

3 participants