<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T10:11:19.456524+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-6hm5-jgcp-p838</id>
    <title>GHSA-6hm5-jgcp-p838 — Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.…</title>
    <updated>2026-10-02T10:11:19.534047+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nltk</p>
<p>### Summary
   A path-traversal vulnerability in `NKJPCorpusReader` allows an attacker who can
   influence the `fileids` argument of its public read methods (`header`, `raw`,
   `words`, `sents`, `tagged_words`) to read files outside the corpus root. The
   reader builds the file path with no containment check and opens it with the
   builtin `open()`, so it bypasses NLTK's `nltk.pathsec` sandbox — including the
   strict `ENFORCE = True` mode that `SECURITY.md` recommends for web/multi-tenant
   deployments. `header()` returns the parsed content of the out-of-root file to
   the caller (arbitrary file read).</p>
<p>### Details
   `SECURITY.md` promises that file access is "validated against allowed NLTK data
   directories" and that with `nltk.pathsec.ENFORCE = True` "unauthorized file
   access … will raise `PermissionError`." That guarantee is enforced via
   `FileSystemPathPointer.open()` / `CorpusReader.open()`, which call
   `nltk.pathsec.validate_path(...)`.</p>
<p>`NKJPCorpusReader` never uses that protected path. In
   `nltk/corpus/reader/nkjp.py`:</p>
<p>- `add_root()` builds the path by **plain string concatenation** with no
     normalization or containment check:
     ```python
     def add_root(self, fileid):          # lines 96-102
         if self.root in fileid:
             return fileid                # attacker-controlled value returned unchanged
         return self.root + fileid        # plain concat, '..' not stripped
     ```
   - The header view appends a fi…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-6hm5-jgcp-p838"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-3581</id>
    <title>PYSEC-2026-3581 — Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.…</title>
    <updated>2026-10-02T10:11:19.534234+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nltk</p>
<p>### Summary
   A path-traversal vulnerability in `NKJPCorpusReader` allows an attacker who can
   influence the `fileids` argument of its public read methods (`header`, `raw`,
   `words`, `sents`, `tagged_words`) to read files outside the corpus root. The
   reader builds the file path with no containment check and opens it with the
   builtin `open()`, so it bypasses NLTK's `nltk.pathsec` sandbox — including the
   strict `ENFORCE = True` mode that `SECURITY.md` recommends for web/multi-tenant
   deployments. `header()` returns the parsed content of the out-of-root file to
   the caller (arbitrary file read).</p>
<p>### Details
   `SECURITY.md` promises that file access is "validated against allowed NLTK data
   directories" and that with `nltk.pathsec.ENFORCE = True` "unauthorized file
   access … will raise `PermissionError`." That guarantee is enforced via
   `FileSystemPathPointer.open()` / `CorpusReader.open()`, which call
   `nltk.pathsec.validate_path(...)`.</p>
<p>`NKJPCorpusReader` never uses that protected path. In
   `nltk/corpus/reader/nkjp.py`:</p>
<p>- `add_root()` builds the path by **plain string concatenation** with no
     normalization or containment check:
     ```python
     def add_root(self, fileid):          # lines 96-102
         if self.root in fileid:
             return fileid                # attacker-controlled value returned unchanged
         return self.root + fileid        # plain concat, '..' not stripped
     ```
   - The header view appends a fi…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-3581"/>
  </entry>
</feed>
