- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 874
 
Fix various dependabot alerts #2063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 4 commits
      Commits
    
    
            Show all changes
          
          
            10 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      aa29555
              
                Upgrade posthog-node to clear axios vulns
              
              
                ericallam 9ca8e18
              
                Upgrade @slack/web-api to use a secure version of axios
              
              
                ericallam 7c02423
              
                Update parse-duration to fix security vulns
              
              
                ericallam cbc52ba
              
                Mitigate against the ws DoS vuln
              
              
                ericallam cc351a8
              
                Upgrade body-parser to 1.20.3 in the webapp
              
              
                ericallam 99da059
              
                Upgrade react-use to 17.5.1 to remove the fast-loops transitive dep
              
              
                ericallam dada30f
              
                Remove unused babel dev deps and config file that's no longer used
              
              
                ericallam 75105ba
              
                Upgrade prismjs to 1.30.0 and bundle parse-duration now
              
              
                ericallam 9aa42d5
              
                upgrade express to 4.20.0 to fix issue with XSS when redirecting
              
              
                ericallam a874299
              
                Upgrade @conform/zod to 0.9.2
              
              
                ericallam File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the intended behavior of setting
maxHeadersCount = 0Setting
maxHeadersCount = 0in Node.js HTTP server typically means "unlimited" or "no limit" on the number of headers, which seems contradictory to the stated goal of preventing DoS attacks from 2000+ headers.In standard Node.js behavior:
This configuration might not achieve the intended security mitigation unless there's additional context about how your specific Node.js environment interprets this value.
Please verify the expected behavior with this script:
🏁 Script executed:
Length of output: 6692
Adjust
maxHeadersCountto enforce a header-count limitThe Node.js docs confirm that
server.maxHeadersCount = 0actually disables the header-count limit (default is 2000), so this override makes your server accept unlimited headers rather than capping them. To mitigate a DoS via excessive headers you should either:• Remove the override entirely and rely on the default (2000)
• Or set a lower, positive limit (e.g. 1000) that fits your threat model
Please update in
apps/webapp/server.ts(lines 132–135):📝 Committable suggestion
🤖 Prompt for AI Agents