Skip to content

Latest version of Sequelize (6.32.0) is high vulnerable with dottie-2.0.3 #16116

Closed

Description

@HMhamedminaee

Latest version of Sequelize (6.32.0) is high vulnerable with

CVE-2023-26132 - High Severity Vulnerability
Vulnerable Library - dottie-2.0.3.tgz
Vulnerability Details
Versions of the package dottie before 2.0.4 are vulnerable to Prototype Pollution due to insufficient checks, via the set() function and the current variable in the /dottie.js file.

Publish Date: 2023-06-10

URL: CVE-2023-26132

CVSS 3 Score Details (7.5)
Base Score Metrics:

Exploitability Metrics:
Attack Vector: Network
Attack Complexity: Low
Privileges Required: None
User Interaction: None
Scope: Unchanged
Impact Metrics:
Confidentiality Impact: None
Integrity Impact: None
Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-26132

Release Date: 2023-06-10

Fix Resolution: dottie - 2.0.4

Activity

  1. added
    pending-approval
    type: bug
    on Jun 12, 2023
  2. added
    type: other
    and removed
    type: bug
    pending-approval
    on Jun 12, 2023
  3. self-assigned this
    on Jun 12, 2023
  4. WikiRik commented on Jun 12, 2023

    @WikiRik
    Member

    You can already use higher versions of dottie, but I'll make a PR to increase the minimal version of dottie later today or tomorrow so everybody will use that

  5. DevRCRun commented on Jun 12, 2023

    @DevRCRun

    Can be resolved by lockfile maintenance.

    I would however be interested in 1) whether the sequelize use case is vulnerable and 2) at the same time as patching the issue it look like dottie went unmaintaned :( in case that is of consequence here

    mickhansen/dottie.js@f840241

  6. WikiRik commented on Jun 12, 2023

    @WikiRik
    Member

    Can be resolved by lockfile maintenance.

    Indeed

    1. whether the sequelize use case is vulnerable

    That's something we'll look into

    1. at the same time as patching the issue it look like dottie went unmaintaned :( in case that is of consequence here

    The issue has been resolved and other security issues will likely also remain resolved. It is possible that we will remove dottie as dependency in v7

  7. TannerS commented on Jun 12, 2023

    @TannerS

    sorry trying to follow this, does this mean a new version will be released with the fixed version?

  8. TannerS commented on Jun 12, 2023

    @TannerS

    You can already use higher versions of dottie, but I'll make a PR to increase the minimal version of dottie later today or tomorrow so everybody will use that

    how?

  9. Rstar1998 commented on Jun 12, 2023

    @Rstar1998

    approximately by when we can get sequelize with updated version of dottie ?

  10. TannerS commented on Jun 12, 2023

    @TannerS

    approximately by when we can get sequelize with updated version of dottie ?

    I think the issue is, dottie is abandoned and they prob wont have an updated version, so the sequelize team may need to find out if the vuln affects them, but even if it doesnt, the vuln reports will still show the issue which is bad because my company uses it andwe go off the reports. or they can remove it all together but who knows if that will be possible

  11. ephys commented on Jun 12, 2023

    @ephys
    Member

    dottie already released version 2.0.4 which includes a fix

    how?

    npm audit fix will bump packages. Alternatively deleting your lockfile and reinstalling dependencies will install the latest compatible version because we did not pin the dependency.

  12. TannerS commented on Jun 12, 2023

    @TannerS

    dottie already released version 2.0.4 which includes a fix

    how?

    npm audit fix will bump packages. Alternatively deleting your lockfile and reinstalling dependencies will install the latest compatible version because we did not pin the dependency.

    ohh thanks, ill try it now, i guess i was looking at the releases tab in the github repo
    image

  13. HMhamedminaee commented on Jun 12, 2023

    @HMhamedminaee
    Author

    @ephys
    I did removed pack lock and redid npm i but still I see
    └─┬ [email protected]
    └── [email protected]

    which is not 2.0.4

  14. ephys commented on Jun 12, 2023

    @ephys
    Member

    Remove your existing node modules too to delete the existing Dottie package

  15. Rstar1998 commented on Jun 13, 2023

    @Rstar1998

    What exact steps did you follow @ephys ?

  16. caarmen commented on Jun 14, 2023

    @caarmen

    For info, a resolutions block can ensure using dottie 2.0.6, in package.json (tested using yarn):

      ...
      "dependencies": {
        ...
        "sequelize": "^6.32.0",
      },  
      "resolutions": {
        "dottie": "^2.0.6"
      }, 
      ...    
  17. Jeconias commented on Jun 14, 2023

    @Jeconias

    I used override as a temporary solution (tested using NPM):

    {
    ...
    "overrides": {
        "sequelize": {
          "dottie": "^2.0.6"
        }
    }
    
  18. TannerS commented on Jun 14, 2023

    @TannerS
  19. linked a pull request that will close this issuefix: bump dependencies #16119on Jun 17, 2023
  20. github-actions commented on Jun 17, 2023

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 6.32.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

Labels

releasedtype: other

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions