Skip to content

Commit 3c66f6d

Browse files
1 parent 72d238e commit 3c66f6d

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

advisories/github-reviewed/2025/09/GHSA-3gcm-f6qx-ff7p/GHSA-3gcm-f6qx-ff7p.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-3gcm-f6qx-ff7p",
4-
"modified": "2025-09-22T21:58:42Z",
4+
"modified": "2025-10-13T15:49:17Z",
55
"published": "2025-09-15T19:59:57Z",
66
"aliases": [
77
"CVE-2025-59528"

advisories/github-reviewed/2025/10/GHSA-37j7-fg3j-429f/GHSA-37j7-fg3j-429f.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-37j7-fg3j-429f",
4-
"modified": "2025-10-10T23:46:43Z",
4+
"modified": "2025-10-13T15:48:53Z",
55
"published": "2025-10-10T23:46:42Z",
66
"aliases": [
77
"CVE-2025-61927"
88
],
99
"summary": "Happy DOM: VM Context Escape can lead to Remote Code Execution",
10-
"details": "# Escape of VM Context gives access to process level functionality\n\n## Summary\nHappy DOM v19 and lower contains a security vulnerability that puts the owner system at the risk of RCE (Remote Code Execution) attacks.\n\nA Node.js VM Context is not an isolated environment, and if the user runs untrusted JavaScript code within the Happy DOM VM Context, it may escape the VM and get access to process level functionality.\n\nWhat the attacker can get control over depends on if the process is using ESM or CommonJS. With CommonJS the attacker can get hold of the `require()` function to import modules.\n\nHappy DOM has JavaScript evaluation enabled by default. This may not be obvious to the consumer of Happy DOM and can potentially put the user at risk if untrusted code is executed within the environment.\n\n## Reproduce\n\n### CommonJS (Possible to get hold of require)\n\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window({ console });\n\nwindow.document.write(`\n <script>\n const process = this.constructor.constructor('return process')();\n const require = process.mainModule.require;\n \n console.log('Files:', require('fs').readdirSync('.').slice(0,3));\n </script>\n`);\n```\n### ESM (Not possible to get hold of import or require)\n\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window({ console });\n\nwindow.document.write(`\n <script>\n const process = this.constructor.constructor('return process')();\n \n console.log('PID:', process.pid);\n </script>\n`);\n```\n\n## Potential Impact\n\n#### Server-Side Rendering (SSR)\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window();\nwindow.document.innerHTML = userControlledHTML;\n```\n\n#### Testing Frameworks\nAny test suite using Happy-DOM with untrusted content may be at risk.\n\n## Attack Scenarios\n\n1. **Data Exfiltration**: Access to environment variables, configuration files, secrets\n2. **Lateral Movement**: Network access for connecting to internal systems. Happy DOM already gives access to the network by fetch, but has protections in place (such as CORS and header validation etc.).\n3. **Code Execution**: Child process access for running arbitrary commands\n4. **Persistence**: File system access\n\n## Recommended Immediate Actions\n\n1. Update Happy DOM to v20 or above\n - This version has JavaScript evaluation disabled by default\n - This version will output a warning if JavaScript is enabled in an insecure environment\n2. Run Node.js with the \"--disallow-code-generation-from-strings\" if you need JavaScript evaluation enabled\n - This makes sure that evaluation can't be used at process level to escape the VM\n - `eval()` and `Function()` can still be used within the Happy DOM VM without any known security risk\n - Happy DOM v20 and above will output a warning if this flag is not in use\n4. If you can't update Happy DOM right now, it's recommended to disable JavaScript evaluation, unless you completely trust the content within the environment\n\n## Technical Root Cause\n\nAll classes and functions inherit from [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function). By walking the constructor chain it's possible to get hold of [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) at process level. As [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) can evaluate code from strings, it's possible to execute code at process level.\n\nRunning Node with the \"--disallow-code-generation-from-strings\" flag protects against this.",
10+
"details": "# Escape of VM Context gives access to process level functionality\n\n## Summary\nHappy DOM v19 and lower contains a security vulnerability that puts the owner system at the risk of RCE (Remote Code Execution) attacks.\n\nA Node.js VM Context is not an isolated environment, and if the user runs untrusted JavaScript code within the Happy DOM VM Context, it may escape the VM and get access to process level functionality.\n\nIt seems like what the attacker can get control over depends on if the process is using ESM or CommonJS. With CommonJS the attacker can get hold of the `require()` function to import modules.\n\nHappy DOM has JavaScript evaluation enabled by default. This may not be obvious to the consumer of Happy DOM and can potentially put the user at risk if untrusted code is executed within the environment.\n\n## Reproduce\n\n### CommonJS (Possible to get hold of require)\n\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window({ console });\n\nwindow.document.write(`\n <script>\n const process = this.constructor.constructor('return process')();\n const require = process.mainModule.require;\n \n console.log('Files:', require('fs').readdirSync('.').slice(0,3));\n </script>\n`);\n```\n### ESM (Not possible to get hold of import or require)\n\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window({ console });\n\nwindow.document.write(`\n <script>\n const process = this.constructor.constructor('return process')();\n \n console.log('PID:', process.pid);\n </script>\n`);\n```\n\n## Potential Impact\n\n#### Server-Side Rendering (SSR)\n```javascript\nconst { Window } = require('happy-dom');\nconst window = new Window();\nwindow.document.innerHTML = userControlledHTML;\n```\n\n#### Testing Frameworks\nAny test suite using Happy-DOM with untrusted content may be at risk\n\n## Attack Scenarios\n\n1. **Data Exfiltration**: Access to environment variables, configuration files, secrets\n2. **Lateral Movement**: Network access for connecting to internal systems. Happy DOM already gives access to the network by fetch, but has protections in place (such as CORS and header validation etc.).\n3. **Code Execution**: Child process access for running arbitrary commands\n4. **Persistence**: File system access\n\n## Recommended Immediate Actions\n\n1. Update Happy DOM to v20 or above\n - This version has JavaScript evaluation disabled by default\n - This version will output a warning if JavaScript is enabled in an insecure environment\n2. Run Node.js with the \"--disallow-code-generation-from-strings\" if you need JavaScript evaluation enabled\n - This makes sure that evaluation can't be used at process level to escape the VM\n - `eval()` and `Function()` can still be used within the Happy DOM VM without any known security risk\n - Happy DOM v20 and above will output a warning if this flag is not in use\n4. If you can't update Happy DOM right now, it's recommended to disable JavaScript evaluation, unless you completely trust the content within the environment\n\n## Technical Root Cause\n\nAll classes and functions inherit from [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function). By walking the constructor chain it's possible to get hold of [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) at process level. As [Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) can evaluate code from strings, it's possible to execute code at process level.\n\nRunning Node with the \"--disallow-code-generation-from-strings\" flag protects against this.",
1111
"severity": [
1212
{
1313
"type": "CVSS_V4",

advisories/github-reviewed/2025/10/GHSA-p34h-wq7j-h5v6/GHSA-p34h-wq7j-h5v6.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-p34h-wq7j-h5v6",
4-
"modified": "2025-10-10T22:53:25Z",
4+
"modified": "2025-10-13T15:47:44Z",
55
"published": "2025-10-10T22:53:25Z",
66
"aliases": [
77
"CVE-2025-61912"
@@ -40,6 +40,10 @@
4040
"type": "WEB",
4141
"url": "https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6"
4242
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-61912"
46+
},
4347
{
4448
"type": "WEB",
4549
"url": "https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f"
@@ -61,6 +65,6 @@
6165
"severity": "MODERATE",
6266
"github_reviewed": true,
6367
"github_reviewed_at": "2025-10-10T22:53:25Z",
64-
"nvd_published_at": null
68+
"nvd_published_at": "2025-10-10T22:15:37Z"
6569
}
6670
}

advisories/github-reviewed/2025/10/GHSA-r7r6-cc7p-4v5m/GHSA-r7r6-cc7p-4v5m.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-r7r6-cc7p-4v5m",
4-
"modified": "2025-10-10T22:51:28Z",
4+
"modified": "2025-10-13T15:47:36Z",
55
"published": "2025-10-10T22:51:28Z",
66
"aliases": [
77
"CVE-2025-61911"
@@ -40,6 +40,10 @@
4040
"type": "WEB",
4141
"url": "https://github.com/python-ldap/python-ldap/security/advisories/GHSA-r7r6-cc7p-4v5m"
4242
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-61911"
46+
},
4347
{
4448
"type": "WEB",
4549
"url": "https://github.com/python-ldap/python-ldap/commit/3957526fb1852e84b90f423d9fef34c7af25b85a"
@@ -61,6 +65,6 @@
6165
"severity": "MODERATE",
6266
"github_reviewed": true,
6367
"github_reviewed_at": "2025-10-10T22:51:28Z",
64-
"nvd_published_at": null
68+
"nvd_published_at": "2025-10-10T22:15:37Z"
6569
}
6670
}

0 commit comments

Comments
 (0)