GHSA-C3M8-X3CG-QM2C
Vulnerability from github – Published: 2020-09-03 20:39 – Updated: 2021-09-29 18:45
VLAI?
Summary
Configuration Override in helmet-csp
Details
Versions of helmet-csp before to 2.9.1 are vulnerable to a Configuration Override affecting the application's Content Security Policy (CSP). The package's browser sniffing for Firefox deletes the default-src CSP policy, which is the fallback policy. This allows an attacker to remove an application's default CSP, possibly rendering the application vulnerable to Cross-Site Scripting.
Recommendation
Upgrade to version 2.9.1 or later. Setting the browserSniff configuration to false in vulnerable versions also mitigates the issue.
Severity ?
6.5 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "helmet-csp"
},
"ranges": [
{
"events": [
{
"introduced": "1.2.2"
},
{
"fixed": "2.9.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:50:01Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "Versions of `helmet-csp` before to 2.9.1 are vulnerable to a Configuration Override affecting the application\u0027s Content Security Policy (CSP). The package\u0027s browser sniffing for Firefox deletes the `default-src` CSP policy, which is the fallback policy. This allows an attacker to remove an application\u0027s default CSP, possibly rendering the application vulnerable to Cross-Site Scripting.\n\n\n## Recommendation\n\nUpgrade to version 2.9.1 or later. Setting the `browserSniff` configuration to `false` in vulnerable versions also mitigates the issue.",
"id": "GHSA-c3m8-x3cg-qm2c",
"modified": "2021-09-29T18:45:07Z",
"published": "2020-09-03T20:39:53Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/helmetjs/csp/commit/67a69baafa8198a154f0505a0cf0875f76f6186a"
},
{
"type": "WEB",
"url": "https://github.com/helmetjs/csp"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-JS-HELMETCSP-469436"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1176"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Configuration Override in helmet-csp"
}
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…