Skip to content

security: update flatted to 3.4.0 to fix prototype pollution (GHSA-25h7-pfq9-p65f) #258

@WilliamBerryiii

Description

@WilliamBerryiii

Summary

The flatted npm package at version 3.3.3 has a High severity prototype pollution vulnerability (GHSA-25h7-pfq9-p65f). This is a transitive dependency present in two docs-related lock files. The fix version (3.4.0) is already within the existing semver range (^3.3.3), so a lock file update resolves the issue.

A grype ignore rule was added in PR #240 to unblock CI. This issue tracks the actual dependency fix and subsequent removal of that ignore rule.

Severity

High — Prototype Pollution

Affected Files

  • docs/_server/package-lock.json — flatted 3.3.3 (transitive dependency)
  • docs/assets/js/package-lock.json — flatted 3.3.3 (transitive dependency)

Neither docs/_server/package.json nor docs/assets/js/package.json list flatted as a direct dependency. It is pulled in transitively.

Vulnerability Details

Field Value
Package flatted
Current Version 3.3.3
Fixed Version 3.4.0
Advisory GHSA-25h7-pfq9-p65f
Severity High
Type Prototype Pollution

Remediation Steps

  1. Run npm update in docs/_server/ to bump flatted from 3.3.3 to 3.4.0
  2. Run npm update in docs/assets/js/ to bump flatted from 3.3.3 to 3.4.0
  3. Verify both package-lock.json files no longer reference flatted 3.3.3
  4. Remove the grype ignore rule for GHSA-25h7-pfq9-p65f from .grype.yaml
  5. Run grype locally to confirm the finding is resolved: grype dir:. --config .grype.yaml

Acceptance Criteria

  • flatted updated to >= 3.4.0 in docs/_server/package-lock.json
  • flatted updated to >= 3.4.0 in docs/assets/js/package-lock.json
  • Grype ignore rule for GHSA-25h7-pfq9-p65f removed from .grype.yaml
  • CI Security Scan passes without the ignore rule

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesDependency updatessecuritySecurity-related changes or concerns

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions