← Back to CVE Explorer

CVE-2025-9556

Full vulnerability record from the local CVENow database.

Description

Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.

Severity
CRITICAL
CVSS score
9.8 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2025-09-12 14:15:42.300000
Last modified
2026-10-19 17:10:00.173000
View original CVE JSON
{
  "id": "CVE-2025-9556",
  "sourceIdentifier": "[email protected]",
  "published": "2025-09-12T14:15:42.300",
  "lastModified": "2026-10-19T17:10:00.173",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3.\r\nGonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the \"etc/passwd\" file."
    },
    {
      "lang": "es",
      "value": "Langchaingo soporta el uso de la sintaxis jinja2 al analizar las indicaciones, que a su vez es analizada usando la biblioteca gonja v1.5.3. Gonja soporta la sintaxis include y extends para leer archivos, lo que lleva a una vulnerabilidad de inyección de plantillas del lado del servidor dentro de langchaingo, permitiendo a un atacante insertar una declaración en una indicación para leer el archivo 'etc/passwd'."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Langchaingo",
          "product": "Langchaingo",
          "versions": [
            {
              "version": "0.1.14",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 9.8,
          "baseSeverity": "CRITICAL",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-09-12T14:00:53.431491Z",
          "id": "CVE-2025-9556",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "references": [
    {
      "url": "https://github.com/tmc/langchaingo/pull/1348",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/tmc/langchaingo/security/advisories/GHSA-mgcj-g55g-rf6h",
      "source": "[email protected]"
    },
    {
      "url": "https://www.kb.cert.org/vuls/id/949137",
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    }
  ]
}