GSD-2021-27884
Vulnerability from gsd - Updated: 2023-12-13 01:23Details
Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users' JWT tokens. This occurs because Math.random in Node.js is used.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2021-27884",
"description": "Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users\u0027 JWT tokens. This occurs because Math.random in Node.js is used.",
"id": "GSD-2021-27884"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2021-27884"
],
"details": "Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users\u0027 JWT tokens. This occurs because Math.random in Node.js is used.",
"id": "GSD-2021-27884",
"modified": "2023-12-13T01:23:35.369111Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2021-27884",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users\u0027 JWT tokens. This occurs because Math.random in Node.js is used."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi",
"refsource": "MISC",
"url": "https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi"
},
{
"name": "https://github.com/YMFE/yapi/issues/2117",
"refsource": "MISC",
"url": "https://github.com/YMFE/yapi/issues/2117"
}
]
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c=1.9.2",
"affected_versions": "All versions up to 1.9.2",
"cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-330",
"CWE-937"
],
"date": "2021-07-22",
"description": "Weak JSON Web Token (JWT) signing secret generation in YMFE YApi allows recreation of other users\u0027 JWT tokens. This occurs because Math.random in Node.js is used.",
"fixed_versions": [
"1.9.3"
],
"identifier": "CVE-2021-27884",
"identifiers": [
"GHSA-2h3h-vw8r-82rp",
"CVE-2021-27884"
],
"not_impacted": "All versions after 1.9.2",
"package_slug": "npm/yapi-vendor",
"pubdate": "2021-03-26",
"solution": "Upgrade to version 1.9.3 or above.",
"title": "Use of Insufficiently Random Values",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-27884",
"https://github.com/YMFE/yapi/issues/2117",
"https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi",
"https://github.com/YMFE/yapi/issues/2263",
"https://github.com/advisories/GHSA-2h3h-vw8r-82rp"
],
"uuid": "1f86acbb-c8b3-42a2-b8b2-d2fe26e727c2"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:ymfe:yapi:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "1.9.2",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2021-27884"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "Weak JSON Web Token (JWT) signing secret generation in YMFE YApi through 1.9.2 allows recreation of other users\u0027 JWT tokens. This occurs because Math.random in Node.js is used."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-330"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/YMFE/yapi/issues/2117",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/YMFE/yapi/issues/2117"
},
{
"name": "https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://securitylab.github.com/advisories/GHSL-2020-228-YMFE-yapi"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "LOCAL",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 3.6,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:L/AC:L/Au:N/C:P/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 3.9,
"impactScore": 4.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "LOW",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "NONE",
"baseScore": 5.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.5,
"impactScore": 2.5
}
},
"lastModifiedDate": "2021-03-08T16:24Z",
"publishedDate": "2021-03-01T23:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…