{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2024-56159/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2024-56159/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2024-56159/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2024-56159/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2024-56159/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2024-56159"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2024-56159"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2024/CVE-2024-56159.yaml",
    "nuclei_template_severity": "medium",
    "nuclei_template_yaml": "id: CVE-2024-56159\n\ninfo:\n  name: Astro - Information Disclosure\n  author: theamanrawat\n  severity: medium\n  description: |\n    Astro versions v5.0.3 through v5.0.7 and Astro v4.16.17 or older with sourcemaps enabled contain a source code disclosure caused by sourcemap files being publicly accessible in the build output folder, letting unauthenticated users read server source code, exploit requires sourcemaps to be enabled.\n  impact: |\n    Unauthenticated users can access server source code, potentially leading to discovery of further vulnerabilities or sensitive information.\n  remediation: |\n    Update Astro to version 5.0.8 or later for server-output projects, and to 5.0.9 or later (or 4.16.18 for Astro v4) for static-output projects with sourcemaps enabled.\n  reference:\n    - https://github.com/withastro/astro/security/advisories/GHSA-49w6-73cw-chjr\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-56159\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N\n    cvss-score: 5.3\n    cve-id: CVE-2024-56159\n    epss-score: 0.01536\n    epss-percentile: 0.74943\n    cwe-id: CWE-219\n  metadata:\n    verified: true\n    max-request: 1\n    shodan-query: http.html:\"astro\"\n  tags: cve,cve2024,astro,sourcemap,exposure,vkev,vuln\n\nhttp:\n  - method: GET\n    path:\n      - \"{{BaseURL}}/pages/index.astro.mjs.map\"\n      - \"{{BaseURL}}/index.astro.mjs.map\"\n\n    stop-at-first-match: true\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - '\"version\":'\n          - '\"sources\":'\n          - '\"sourcesContent\":'\n          - '.astro'\n        condition: and\n\n      - type: status\n        status:\n          - 200\n# digest: 490a004630440220212b075bd5c9a4d0783a217aff4d9404a1f2ee9154a2ba54c9cbc54e5f438d9d022074cb34798b6ef33302667fc56c85104dba144fd633ab8f0f0bec7dff7bffa612:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2024-56159"
}