Skip to content

Bump flatted from 3.3.3 to 3.4.2 - #15

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/flatted-3.4.2
Open

Bump flatted from 3.3.3 to 3.4.2#15
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/flatted-3.4.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 21, 2026

Copy link
Copy Markdown
Contributor

Bumps flatted from 3.3.3 to 3.4.2.

Commits
  • 3bf0909 3.4.2
  • 885ddcc fix CWE-1321
  • 0bdba70 added flatted-view to the benchmark
  • 2a02dce 3.4.1
  • fba4e8f Merge pull request #89 from WebReflection/python-fix
  • 5fe8648 added "when in Rome" also a test for PHP
  • 53517ad some minor improvement
  • b3e2a0c Fixing recursion issue in Python too
  • c4b46db Add SECURITY.md for security policy and reporting
  • f86d071 Create dependabot.yml for version updates
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [flatted](https://github.com/WebReflection/flatted) from 3.3.3 to 3.4.2.
- [Commits](WebReflection/flatted@v3.3.3...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 21, 2026

@ecobitai ecobitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Verification: APPROVED

flatted 3.3.3 → 3.4.2 (minor bump)

Summary

  • CI: No CI checks configured for this repository
  • Risk: Very Low
  • Type: Transitive dev dependency (via flat-cache → ESLint)

Security Fix

This update includes a fix for CWE-1321 (Prototype Pollution). The fix adds a unary + operator to coerce array index values to numbers, preventing potential prototype pollution attacks:

- const tmp = input [ value ] ;
+ const tmp = input [ + value ] ;

Usage Analysis

  • Direct usage: None found in source code
  • Dependency chain: flattedflat-cacheeslint (dev dependency)
  • Impact: Dev-only, not shipped to production

Recommendation

Safe to merge — This is a security patch for a transitive dev dependency with no breaking changes to the public API.

Technical Details
Property Value
Classifier Tier standard
Tier Reasoning Security advisory update with minor version bump requires investigation despite automated bot submission. No CI checks found to verify safety.
Verdict APPROVE
Model z-ai/glm-5-20260211
Iterations 6
Reasoning enabled
Duration 70.4s
Auto-Verify enabled
Auto-Approve Level major
Auto-Merge Level off
Tokens Count Cost
Input 70,816 $0.0567
Output 1,450 $0.0037
Total $0.0604

Classifier overhead: 373 tokens ($0.0006)

Tools: shell x5, search_web, fetch_url x2

⚡️ Trace Log

🔷 Executed:

#!/bin/bash
# Check how flatted is used in the codebase
rg "flatted" -g "*.{ts,tsx,js,jsx,json}" -n --type-add 'lock:package-lock.json' -t lock 2>/dev/null || rg "flatted" -g "package*.json" -n

Length of output: 204 chars

package-lock.json:2668:        "flatted": "^3.2.9",
package-lock.json:2675:    "node_modules/flatted": {
package-lock.json:2677:      "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",

🔷 Executed:

#!/bin/bash
# Check package.json for flatted dependency
cat package.json 2>/dev/null | jq '.dependencies, .devDependencies' 2>/dev/null || cat package.json

Length of output: 482 chars

{
  "@tailwindcss/vite": "^4.1.10",
  "react": "^19.1.0",
  "react-dom": "^19.1.0",
  "tailwindcss": "^4.1.10"
}
{
  "@eslint/js": "^9.25.0",
  "@types/node": "^24.10.0",
  "@types/react": "^19.1.2",
  "@types/react-dom": "^19.1.2",
  "@vitejs/plugin-react": "^4.4.1",
  "eslint": "^9.25.0",
  "eslint-plugin-react-hooks": "^5.2.0",
  "eslint-plugin-react-refresh": "^0.4.19",
  "globals": "^16.0.0",
  "typescript": "~5.8.3",
  "typescript-eslint": "^8.30.1",
  "vite": "^6.4.1"
}

🔷 Executed:

#!/bin/bash
# Check what package depends on flatted (it's a transitive dependency)
cat package-lock.json | jq '.packages["node_modules/flatted"], .packages[""]' 2>/dev/null | head -50

Length of output: 904 chars

{
  "version": "3.4.2",
  "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
  "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
  "dev": true,
  "license": "ISC"
}
{
  "name": "timelogger-client",
  "version": "0.0.0",
  "dependencies": {
    "@tailwindcss/vite": "^4.1.10",
    "react": "^19.1.0",
    "react-dom": "^19.1.0",
    "tailwindcss": "^4.1.10"
  },
  "devDependencies": {
    "@eslint/js": "^9.25.0",
    "...

🔷 Executed:

#!/bin/bash
# Search for any direct usage of flatted in source code
rg "from ['\"]flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null
rg "require\(['\"]flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null
rg "import.*flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null

Length of output: 298 chars

Command failed (exit code 1): Command failed: #!/bin/bash
# Search for any direct usage of flatted in source code
rg "from ['\"]flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null
rg "require\(['\"]flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null
rg "import.*flatted" -g "*.{ts,tsx,js,jsx}" -n 2>/dev/null

🔷 Executed:

#!/bin/bash
# Find what package depends on flatted (look for it in the lockfile)
rg '"flatted"' package-lock.json -B 5 -A 1 | head -40

Length of output: 321 chars

"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
      "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
      "dev": true,
      "license": "MIT",
      "dependencies": {
        "flatted": "^3.2.9",
        "keyv": "^4.5.4"

🔷 Executed:

search_web(query="flatted 3.4.2 CWE-1321 security fix")

Length of output: 1938 chars

Found 5 results for "flatted 3.4.2 CWE-1321 security fix":

1. CWE-1321 - CWE Weakness Details & Mitigation
   https://pentestreports.com/weaknesses/CWE-1321
   Learn about CWE-1321 weakness.Understand the vulnerability category, common attack patterns, and remediation strategies for secure development.

2. CWE-1321 - Prototype Pollution - Details and CVSS Score
   https://appsec.backslash.security/cwe/1321
   CWE-1321 - <strong>The product receives input from an upstream component that specifie...

🔷 Executed:

fetch_url(url="https://github.com/WebReflection/flatted/releases", extraction_prompt="What are the changes in version 3.4.2? What security issue was fixed?")

Length of output: 641 chars

*Content from https://github.com/WebReflection/flatted/releases:*

# Summary

The web page content shows a GitHub releases page for the "flatted" repository, but **no release information is available**.

## Key Findings:

- **No releases exist**: The page displays the message "There aren't any releases here"
- **No version 3.4.2 information**: There is no data about version 3.4.2 or any other specific version
- **No security fixes listed**: No security issues or fixes are documented on this page...

🔷 Executed:

fetch_url(extraction_prompt="What was the security fix for CWE-1321? What code changes were made?", url="https://github.com/WebReflection/flatted/commit/885ddcc33cf9657caf38c57c7be45ae1c5272802")

Length of output: 1254 chars

*Content from https://github.com/WebReflection/flatted/commit/885ddcc33cf9657caf38c57c7be45ae1c5272802:*

# Security Fix Analysis for CWE-1321

## Information Available
The web page shows a GitHub commit from the `flatted` repository, but **does not explicitly mention CWE-1321 or provide a security fix description**.

## Code Changes Made
The commit modified **6 files** with identical changes across multiple build formats (cjs, es, esm, index, and min versions):

**Change Pattern:**
`​`​`
- const ...

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants