-
Notifications
You must be signed in to change notification settings - Fork 328
/
GHSA-fj58-h2fr-3pp2.json
78 lines (78 loc) · 2.48 KB
/
GHSA-fj58-h2fr-3pp2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"schema_version": "1.4.0",
"id": "GHSA-fj58-h2fr-3pp2",
"modified": "2023-01-11T21:59:18Z",
"published": "2021-10-12T16:35:45Z",
"aliases": [
"CVE-2019-18413"
],
"summary": "SQL Injection and Cross-site Scripting in class-validator",
"details": "In TypeStack class-validator, `validate()` input validation can be bypassed because certain internal attributes can be overwritten via a conflicting name. Even though there is an optional `forbidUnknownValues` parameter that can be used to reduce the risk of this bypass, this option is not documented and thus most developers configure input validation in the vulnerable default manner. With this vulnerability, attackers can launch SQL Injection or XSS attacks by injecting arbitrary malicious input.\n\nThe default settings for `forbidUnknownValues` has been changed to `true` in 0.14.0.\n\nNOTE: a software maintainer agrees with the \"is not documented\" finding but suggests that much of the responsibility for the risk lies in a different product.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "class-validator"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.14.0"
}
]
}
]
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-18413"
},
{
"type": "WEB",
"url": "https://github.com/typestack/class-validator/issues/1422#issuecomment-1344635415"
},
{
"type": "WEB",
"url": "https://github.com/typestack/class-validator/issues/438"
},
{
"type": "WEB",
"url": "https://github.com/typestack/class-validator/issues/438#issuecomment-964728471"
},
{
"type": "WEB",
"url": "https://github.com/typestack/class-validator/pull/1798"
},
{
"type": "PACKAGE",
"url": "https://github.com/typestack/class-validator"
},
{
"type": "WEB",
"url": "https://github.com/typestack/class-validator#passing-options"
}
],
"database_specific": {
"cwe_ids": [
"CWE-79",
"CWE-89"
],
"severity": "CRITICAL",
"github_reviewed": true,
"github_reviewed_at": "2021-10-08T23:11:08Z",
"nvd_published_at": "2019-10-24T18:15:00Z"
}
}