Skip to content
Heist/ feed
Back to feed
Medium

Opening a malicious website while running a Nuxt dev server could allow read-only access to code

Type: advisorySources: OSV

Nuxt is an open-source web development framework for Vue.js. Source code may be stolen during dev when using version 3.0.0 through 3.15.12 of the webpack builder or version 3.12.2 through 3.152 of the rspack builder and a victim opens a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. By using `Function::toString` against the values in `window.webpackChunknuxt_app`, the attacker can get the source code. Version 3.15.13 of Nuxt patches this issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-24361
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 04:06 UTC · Revision 1

Source evidence

Opening a malicious website while running a Nuxt dev server could allow read-only access to code

core-osv · Original source

Published 25 Jan 2025, 00:53 UTC

Nuxt is an open-source web development framework for Vue.js. Source code may be stolen during dev when using version 3.0.0 through 3.15.12 of the webpack builder or version 3.12.2 through 3.152 of the rspack builder and a victim opens a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. By using `Function::toString` against the values in `window.webpackChunknuxt_app`, the attacker can get the source code. Version 3.15.13 of Nuxt patches this issue.

osv:CVE-2025-24361
Complete source record
{
  "id": "91fcb2b9f3b1b6c7de79c9fae60baf9bcc34779e98f46ff11f150556177a68da",
  "url": "https://osv.dev/vulnerability/CVE-2025-24361",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Opening a malicious website while running a Nuxt dev server could allow read-only access to code",
    "summary": "Nuxt is an open-source web development framework for Vue.js. Source code may be stolen during dev when using version 3.0.0 through 3.15.12 of the webpack builder or version 3.12.2 through 3.152 of the rspack builder and a victim opens a malicious web site. Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject a malicious script in their site and run the script. By using `Function::toString` against the values in `window.webpackChunknuxt_app`, the attacker can get the source code. Version 3.15.13 of Nuxt patches this issue.",
    "evidence": "osv:CVE-2025-24361",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-24361",
      "aliases": [
        "CVE-2025-24361",
        "GHSA-4gf7-ff8x-hq99"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nuxt/nuxt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d991a55ec36f5ac61de0af7d0b018a150153445b"
                },
                {
                  "fixed": "048f974eba45e4909dcf53e8ce692fae3c5db37f"
                },
                {
                  "introduced": "8578e2bd62bdf3ce9dab70c7241a3953feb043b7"
                },
                {
                  "fixed": "048f974eba45e4909dcf53e8ce692fae3c5db37f"
                },
                {
                  "fixed": "7eeb910bf4accb1e0193b9178c746f06ad3dd88f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.15.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.12.2"
                      },
                      {
                        "fixed": "3.15.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7eeb910bf4accb1e0193b9178c746f06ad3dd88f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.15.2",
            "v3.15.1",
            "v3.15.0",
            "v3.14.1592",
            "v3.14.159",
            "v3.14.0",
            "v3.13.2",
            "v3.13.1",
            "v3.13.0",
            "v3.12.4",
            "v3.12.3",
            "v3.12.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24361.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.684207791Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24361.json",
        "https://github.com/nuxt/nuxt/security/advisories/GHSA-4gf7-ff8x-hq99",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-24361",
        "https://github.com/nuxt/nuxt/commit/7eeb910bf4accb1e0193b9178c746f06ad3dd88f"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-749"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24361.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-24361",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492395,
  "published_at": "2025-01-25T00:53:23.4+00:00"
}